Skip to content
Commit 55534c09 authored by Markus Elfring's avatar Markus Elfring Committed by Andreas Gruenbacher
Browse files

gfs2: Move variable assignment behind a null pointer check in inode_go_dump



Since commit 27a2660f ("gfs2: Dump nrpages for inodes and their
glocks"), inode_go_dump() computes the address of inode within ip before
checking if ip is NULL.  This isn't a bug by itself, but it can give
rise to bugs later.  Avoid that by checking if ip is NULL first.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 130cf526
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