diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-18 02:12:06 +0100 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 15:58:19 +0200 |
commit | 1a3aedbce416dfdbd5d5ac14a0edbcf21a62ee50 (patch) | |
tree | 4cddb110b6890b9df554193ae24ca4c74f99dea1 /kernel/audit_watch.c | |
parent | Audit: split audit watch Kconfig (diff) | |
download | linux-1a3aedbce416dfdbd5d5ac14a0edbcf21a62ee50.tar.xz linux-1a3aedbce416dfdbd5d5ac14a0edbcf21a62ee50.zip |
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>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r-- | kernel/audit_watch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index c44de0c4fc47..f8543a41115b 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c @@ -584,4 +584,4 @@ static int __init audit_watch_init(void) } return 0; } -subsys_initcall(audit_watch_init); +device_initcall(audit_watch_init); |