]> git.sur5r.net Git - u-boot/commit
fs: btrfs: Fix usage of uninitialized variables
authorMarek BehĂșn <marek.behun@nic.cz>
Fri, 6 Oct 2017 13:04:57 +0000 (15:04 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 16 Oct 2017 13:42:51 +0000 (09:42 -0400)
commitecab881c7fcd7484420b6aa15b0f748458640191
treee3af32cdbc612722f890a0b61b77fb7f10788064
parent502af618ec3d60f3c8b9914e3484f112fb295b6e
fs: btrfs: Fix usage of uninitialized variables

The variable res should be initialized to 0 in these functions,
because if the searched key is not found, the variable is used
uninitialized.

Reported-by: Coverity (CID: 167335)
Reported-by: Coverity (CID: 167336)
Reported-by: Coverity (CID: 167337)
Signed-off-by: Marek Behun <marek.behun@nic.cz>
fs/btrfs/chunk-map.c
fs/btrfs/dir-item.c
fs/btrfs/inode.c