Skip to content

fs: btrfs: coverity fixes

Qu Wenruo linux-btrfs u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fs: btrfs: inode: handle uninitialized type before returning itfs/btrfs/inode.c+5 -12 replies
2/4fs: btrfs: volumes: prevent overflow for multiplyingfs/btrfs/volumes.c+2 -22 replies
2/4fs: btrfs: volumes: prevent overflow for multiplying+0 -01 reply
3/4fs: btrfs: initialize @ret to 0 to prevent uninitialized return valuefs/btrfs/btrfs.c+1 -12 replies
4/4fs: btrfs: initialize @ii in show_dir() to make coverity happyfs/btrfs/btrfs.c+1 -11 reply
4/4fs: btrfs: initialize @ii in show_dir() to make coverity happy+0 -02 replies
4/4fs: btrfs: initialize @ii in show_dir() to make coverity happy+0 -00 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchMarek Beh?n
1/4R-b
2/4
2/4
3/4R-b
4/4
4/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] fs: btrfs: coverity fixes

Most of the coverity reports are at least a good hint to us to improve the code style.
Although there are some false alerts, but it's really hard to teach coverity to be a real human (yet), thus fix the warning even it's just false alerts.

Qu Wenruo (4):
fs: btrfs: inode: handle uninitialized type before returning it
fs: btrfs: volumes: prevent overflow for multiplying
fs: btrfs: initialize @ret to 0 to prevent uninitialized return value
fs: btrfs: initialize @ii in show_dir() to make coverity happy

 fs/btrfs/btrfs.c   | 4 ++--
 fs/btrfs/inode.c   | 6 +++++-
 fs/btrfs/volumes.c | 4 ++--
 3 files changed, 9 insertions(+), 5 deletions(-)
Signature · 1 line
2.29.1