]> git.baikalelectronics.ru Git - kernel.git/commit
sgi-gru: call fs_initcall() if statically linked
authorDean Nelson <dcn@sgi.com>
Tue, 2 Dec 2008 14:06:01 +0000 (08:06 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Dec 2008 23:51:35 +0000 (15:51 -0800)
commit0264e1652fee2e001ca6d35a6e28b5118f7bf0d6
tree33c611fe977766b98442db0b99700e8e1921171b
parentb992aaf0a117e1cc81c80519d80e2c322e3c50c4
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 <dcn@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-gru/grufile.c