]> git.baikalelectronics.ru Git - kernel.git/commit
Audit: audit watch init should not be before fsnotify init
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 01:12:06 +0000 (20:12 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:58:19 +0000 (09:58 -0400)
commit1e6e0ae8911aaabbdc7c9b23a5ffd7a6c015f0dc
tree4cddb110b6890b9df554193ae24ca4c74f99dea1
parent687bd429e2094ce660343bc7ea24a1698415ed5c
Audit: audit watch init should not be before fsnotify init

Audit watch init and fsnotify init both use subsys_initcall() but since the
audit watch code is linked in before the fsnotify code the audit watch code
would be using the fsnotify srcu struct before it was initialized.  This
patch fixes that problem by moving audit watch init to device_initcall() so
it happens after fsnotify is ready.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Eric Paris <eparis@redhat.com>
Tested-by : Sachin Sant <sachinp@in.ibm.com>
kernel/audit_watch.c