gru: handle failures to mmu_notifier_register
authorJack Steiner <steiner@sgi.com>
Wed, 16 Dec 2009 00:48:08 +0000 (16:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:15 +0000 (07:20 -0800)
commit7f2251b1bcdd3d2971b2fde3008b270ea11b8780
tree5fc3a2fc089188a6a61e16374a5b715db280aca7
parent6c9620c64be3920487c0533e0ab6724dad565d59
gru: handle failures to mmu_notifier_register

Under some conditions, mmu_notifier_register() will fail to register a
mmu_notifier.  Fix the GRU driver to correctly handle these failures.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-gru/grufault.c
drivers/misc/sgi-gru/grumain.c
drivers/misc/sgi-gru/grutlbpurge.c