rv1126-uboot/fs
Heinrich Schuchardt 1759abcc94 UPSTREAM: fs: avoid possible NULL dereference in fs_devread
It is unwise to first dereference a variable
and then to check if it was NULL.

Change-Id: I2c28e092380c649874fab06f0b4e453466e2d16c
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Marek Behun <marek.behun@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 24f48416dfe1d827dcf759d6cd0e7a8e5c67e321)
2018-01-17 15:27:28 +08:00
..
cbfs fs: Kconfig: Add a separate config for FS_CBFS 2017-04-30 13:40:57 -04:00
cramfs fs: Kconfig: Add a separate option for FS_CRAMFS 2017-04-30 13:40:59 -04:00
ext4 UPSTREAM: ext4: recover from filesystem corruption when reading 2018-01-17 15:27:28 +08:00
fat UPSTREAM: fs/fat: Check malloc return values and fix memory leaks 2018-01-17 15:27:28 +08:00
jffs2 treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
reiserfs UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfs 2018-01-17 15:27:28 +08:00
sandbox sandboxfs: Fix resource leak 2016-12-02 10:37:47 -07:00
ubifs env: Rename common functions related to setenv() 2017-08-16 08:23:32 -04:00
yaffs2 treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
zfs UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfs 2018-01-17 15:27:28 +08:00
Kconfig Convert CONFIG_CMD_YAFFS2 to Kconfig 2017-08-11 17:44:50 -04:00
Makefile UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfs 2018-01-17 15:27:28 +08:00
fs.c UPSTREAM: fat/fs: move ls to generic implementation 2018-01-16 18:16:48 +08:00
fs_internal.c UPSTREAM: fs: avoid possible NULL dereference in fs_devread 2018-01-17 15:27:28 +08:00