[PATCH 3/4] fs: btrfs: initialize @ret to 0 to prevent uninitialized return value

Tom Rini trini at konsulko.com
Fri Nov 20 02:36:21 CET 2020


On Sat, Oct 31, 2020 at 09:07:51AM +0800, Qu Wenruo wrote:

> In show_dir() if we hit a ROOT_ITEM, we can exit with uninitialized
> @ret.
> 
> Fix it by initializing it to 0.
> 
> Reported-by: Coverity CID 312955
> Signed-off-by: Qu Wenruo <wqu at suse.com>
> Reviewed-by: Marek Behún <marek.behun at nic.cz>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201119/48518516/attachment.sig>


More information about the U-Boot mailing list