]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: avoid possible NULL pointer dereference in o2net_accept_one()
authorJoseph Qi <joseph.qi@huawei.com>
Wed, 11 Sep 2013 21:20:01 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:56:50 +0000 (15:56 -0700)
commitd0fb1787ceff29e5b254eb91b403fa158ae3a60d
tree2adc8eb4f283cc2ffa3f6903e074f634c3f4a78f
parent6bd85774802e0f040f47fa6c469f65cf47b24727
ocfs2: avoid possible NULL pointer dereference in o2net_accept_one()

Since o2nm_get_node_by_num() may return NULL, we add this check in
o2net_accept_one() to avoid possible NULL pointer dereference.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/tcp.c