]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kcore: fix test for end of list
authorDan Carpenter <error27@gmail.com>
Tue, 23 Mar 2010 20:35:42 +0000 (13:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:32:44 +0000 (12:32 -0800)
commit6efcfa8880fb9ca080c7c50feb71dd0bf04ed108
tree54a7a0ffab4a84ff8c12f1312f361ceed34dd126
parent35b6863ce555ce59e36a2c2bf7c8a8e9a9da577b
kcore: fix test for end of list

commit 4fd2c20d964a8fb9861045f1022475c9d200d684 upstream.

"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>
Cc: Leonardo Chiquitto <leonardo.lists@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/proc/kcore.c