kcore: fix test for end of list
authorDan Carpenter <error27@gmail.com>
Tue, 23 Mar 2010 20:35:42 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:22 +0000 (16:31 -0700)
commit4fd2c20d964a8fb9861045f1022475c9d200d684
treeff062c1c775a085851a38c77a81c6907fdade35d
parentc6b6ef8bb05af632889c5536513b9f4004961f73
kcore: fix test for end of list

"m" is never NULL here.  We need a different test for the end of list
condition.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/kcore.c