[U-Boot] [PATCH 1/1] fs: avoid possible NULL dereference in fs_devread
Bin Meng
bmeng.cn at gmail.com
Mon Nov 20 09:36:35 UTC 2017
On Mon, Nov 20, 2017 at 6:49 AM, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> It is unwise to first dereference a variable
> and then to check if it was NULL.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> fs/fs_internal.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list