gru: check for valid vma
authorJack Steiner <steiner@sgi.com>
Wed, 16 Dec 2009 00:48:10 +0000 (16:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:15 +0000 (07:20 -0800)
commite006043a4d2da52bba9fd9cb7e5a22e2951ff69b
tree21fcb2c1997b3070b54df12ec4102d2489deeecd
parent33f3648342dc40f8bd6383a5a1a91c22e06f6b77
gru: check for valid vma

Fix bug caused by failure to allocate a GRU gts structure.  The old code
failed to handle the case where the vma was invalid.

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