]> 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)
commit9102a8c758af91e5fa8de0534579b21f935e29cd
tree0edc984430d6ccc5c417ccb8a3600cbe8b75e7ed
parentcb2ba6ad30212a2fd305fe15f799fc260a7b0510
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