gfs2: Silence possible null pointer dereference warning
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 2 Apr 2021 17:51:24 +0000 (19:51 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Sat, 3 Apr 2021 19:38:12 +0000 (21:38 +0200)
commitbea906ee1624aeb34ea2c5acca84728de4185726
tree2e47f1b828f3f14b6a3eab4892ff0bcc9beebc75
parent6d8da302aedf9ff32c1579cbf91705a78538cb9e
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: kernel test robot <lkp@intel.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/rgrp.c