Skip to content
Commit 24f48416 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Tom Rini
Browse files

fs: avoid possible NULL dereference in fs_devread



It is unwise to first dereference a variable
and then to check if it was NULL.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarMarek Behun <marek.behun@nic.cz>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 254eedee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment