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)
commit90bdfcb76f7d3b4a763ded3242277578ef22eda4
tree0edc984430d6ccc5c417ccb8a3600cbe8b75e7ed
parenta13683f292b2ce697f71fa3788a9335ebcb32676
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