GFS2: check NULL return value in gfs2_ok_to_move
authorAbhi Das <adas@redhat.com>
Wed, 12 Mar 2014 08:41:44 +0000 (03:41 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 12 Mar 2014 09:50:27 +0000 (09:50 +0000)
commit48f8f711edf3868fe4faa28a19f07acb43532c4a
tree0e6f5f96792c6173792d16b1b7fe9c92b5c08998
parentcb94eb066e089da461d37fea39779606512e144a
GFS2: check NULL return value in gfs2_ok_to_move

gfs2_lookupi() can return NULL if the path to the root is broken by
another rename/rmdir. In this case gfs2_ok_to_move() must check for
this NULL pointer and return error.

Resolves: rhbz#1060246
Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c