fanotify: do not dereference inode_mark when it is unset
authorEric Paris <eparis@redhat.com>
Wed, 18 Aug 2010 16:25:49 +0000 (12:25 -0400)
committerEric Paris <eparis@redhat.com>
Mon, 23 Aug 2010 00:09:41 +0000 (20:09 -0400)
commitfaa9560ae76ef50a3cbfb1a6afc0343fd8172374
treeb62dcdece22b214d0e0c75848b4d02b8e9923d0c
parent3dc8d7f07e7496c0c6702e7e4b1acc179fa94019
fanotify: do not dereference inode_mark when it is unset

The fanotify code is supposed to get the group from the mark.  It accidentally
only used the inode_mark.  If the vfsmount_mark was set but not the inode_mark
it would deref the NULL inode_mark.  Get the group from the correct place.

Reported-by: Tvrtko Ursulin <tvrtko.ursulin@sophos.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/fsnotify.c