Skip to content
Commit bea906ee authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Silence possible null pointer dereference warning



In gfs2_rbm_find, rs is always NULL when minext is NULL, so
gfs2_reservation_check_and_update will never be called on a NULL minext.
This isn't innediately obvious though, so also check for a NULL minext
for better code readability.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 6d8da302
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment