]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e362cd0d20c6ccc3b0c8e6a126ecec9a07908a5
tree5b6a3cdaab135c41848952874a6fab086b8b9f72
parentfdefdb2553f60f6fdf2e89318b048a8ca5a6840a
Btrfs: Make sure dir is non-null before doing S_ISGID checks

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