diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-10 22:06:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-02 17:24:46 +0200 |
commit | 22dec5f46b404668d3bebe599ee4cff42501f7e7 (patch) | |
tree | 5e7cf2beb6313b4080f5755a6fa60826131c8343 /include | |
parent | ea8f7a3dfd66f9ad1f65b47159ff38d8c278e5d7 (diff) |
ext4: unsigned int compared against zero
commit fbbbbd2f28aec991f3fbc248df211550fbdfd58c upstream.
There are two cases where u32 variables n and err are being checked
for less than zero error values, the checks is always false because
the variables are not signed. Fix this by making the variables ints.
Addresses-Coverity: ("Unsigned compared against 0")
Fixes: 345c0dbf3a30 ("ext4: protect journal inode's blocks using block_validity")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Ashwin H <ashwinh@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions