diff options
author | Harshad Shirwadkar <harshadshirwadkar@gmail.com> | 2021-12-01 08:34:21 -0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-01-10 13:25:55 -0500 |
commit | c27c29c6af4f3f4ce925a2111c256733c5a5b430 (patch) | |
tree | a4b6b74fa31230340084d2f7b9e01d0164c4277b /crypto/sm2.c | |
parent | 8c80fb312d7abf8bcd66cca1d843a80318a2c522 (diff) | |
download | linux-c27c29c6af4f3f4ce925a2111c256733c5a5b430.tar.bz2 |
ext4: initialize err_blk before calling __ext4_get_inode_loc
It is not guaranteed that __ext4_get_inode_loc will definitely set
err_blk pointer when it returns EIO. To avoid using uninitialized
variables, let's first set err_blk to 0.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20211201163421.2631661-1-harshads@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'crypto/sm2.c')
0 files changed, 0 insertions, 0 deletions