Skip to content
Commit 7a19dee1 authored by Jan Kara's avatar Jan Kara Committed by Dave Chinner
Browse files

xfs: Check error during inode btree iteration in xfs_bulkstat()



xfs_bulkstat() doesn't check error return from xfs_btree_increment(). In
case of specific fs corruption that could result in xfs_bulkstat()
entering an infinite loop because we would be looping over the same
chunk over and over again. Fix the problem by checking the return value
and terminating the loop properly.

Coverity-id: 1231338
cc: <stable@vger.kernel.org>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarJie Liu <jeff.u.liu@gmail.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent a6bbce54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment