Btrfs: Make sure dir is non-null before doing S_ISGID checks
authorChris Mason <chris.mason@oracle.com>
Fri, 6 Feb 2009 16:35:57 +0000 (11:35 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 6 Feb 2009 16:35:57 +0000 (11:35 -0500)
The S_ISGID check in btrfs_new_inode caused an oops during subvol creation
because sometimes the dir is null.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c

Simple merge