]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit978f1994636c088c90ba3c19084c8e46573d6bd7
treeb62dcdece22b214d0e0c75848b4d02b8e9923d0c
parent7921eb6b843f8ec653f0a54cb954afc25bed8eab
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