From: Eric Paris Date: Fri, 18 Dec 2009 01:12:06 +0000 (-0500) Subject: Audit: audit watch init should not be before fsnotify init X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1a3aedbce416dfdbd5d5ac14a0edbcf21a62ee50;p=linux-beck.git 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 Signed-off-by: Eric Paris Tested-by : Sachin Sant --- 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);