mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
sgi-gru: call fs_initcall() if statically linked
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7a0d7940e7
commit
026bde120a
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ struct vm_operations_struct gru_vm_ops = {
|
|||
.fault = gru_fault,
|
||||
};
|
||||
|
||||
module_init(gru_init);
|
||||
fs_initcall(gru_init);
|
||||
module_exit(gru_exit);
|
||||
|
||||
module_param(gru_options, ulong, 0644);
|
||||
|
|
|
|||
Loading…
Reference in a new issue