The patch titled sgi-gru: call fs_initcall() if statically linked has been added to the -mm tree. Its filename is sgi-gru-call-fs_initcall-if-statically-linked.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: sgi-gru: call fs_initcall() if statically linked From: Dean Nelson <dcn@xxxxxxx> If xpc.ko and gru.ko are both statically linked into the kernel, then xpc_init() can get called before gru_init() and make a call to one of the gru's exported functions before the gru has initialized itself. The end result is a NULL dereference. Signed-off-by: Dean Nelson <dcn@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/misc/sgi-gru/grufile.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN drivers/misc/sgi-gru/grufile.c~sgi-gru-call-fs_initcall-if-statically-linked drivers/misc/sgi-gru/grufile.c --- a/drivers/misc/sgi-gru/grufile.c~sgi-gru-call-fs_initcall-if-statically-linked +++ a/drivers/misc/sgi-gru/grufile.c @@ -481,7 +481,11 @@ struct vm_operations_struct gru_vm_ops = .fault = gru_fault, }; +#ifndef MODULE +fs_initcall(gru_init); +#else module_init(gru_init); +#endif module_exit(gru_exit); module_param(gru_options, ulong, 0644); _ Patches currently in -mm which might be from dcn@xxxxxxx are sgi-gru-call-fs_initcall-if-statically-linked.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html