diff options
author | Josef Bacik <[email protected]> | 2019-10-02 10:03:36 -0400 |
---|---|---|
committer | David Sterba <[email protected]> | 2019-10-03 15:00:56 +0200 |
commit | c5f4987e86f6692fdb12533ea1fc7a7bb98e555a (patch) | |
tree | 80dabb48e049292e0246f5200b3934dddc31edd0 /lib/mpi/mpi-bit.c | |
parent | 11a19a90870ea5496a8ded69b86f5b476b6d3355 (diff) |
btrfs: fix uninitialized ret in ref-verify
Coverity caught a case where we could return with a uninitialized value
in ret in process_leaf. This is actually pretty likely because we could
very easily run into a block group item key and have a garbage value in
ret and think there was an errror. Fix this by initializing ret to 0.
Reported-by: Colin Ian King <[email protected]>
Fixes: fd708b81d972 ("Btrfs: add a extent ref verify tool")
CC: [email protected] # 4.19+
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions