Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gfs2: Move variable assignment behind a null pointer check in inode_g…
…o_dump Since commit 27a2660 ("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: Markus Elfring <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
- Loading branch information