mm/mempolicy.c: check return code of check_range
authorVasiliy Kulikov <segooon@gmail.com>
Tue, 26 Oct 2010 21:21:32 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:06 +0000 (16:52 -0700)
commit0def08e3acc2c9c934e4671487029aed52202d42
tree5c1259f85b0ab08cb3e421f6104bee832a956413
parent74e3f3c3391d81a959f58a1191a560703a4415b4
mm/mempolicy.c: check return code of check_range

Function check_range may return ERR_PTR(...). Check for it.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c