]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: deal with return value of tipc_conn_new callback
authorYing Xue <ying.xue@windriver.com>
Mon, 4 May 2015 02:36:48 +0000 (10:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 19:04:01 +0000 (15:04 -0400)
commit2cb696b656d748eb1ff06b0d8f3a3b587444baef
tree0edc984430d6ccc5c417ccb8a3600cbe8b75e7ed
parent7db5f928b3f4f3632f7e6ba5717a7f4d26208bee
tipc: deal with return value of tipc_conn_new callback

Once tipc_conn_new() returns NULL, the connection should be shut
down immediately, otherwise, oops may happen due to the NULL pointer.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/server.c