]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Oct 2017 07:48:25 +0000 (10:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 07:34:00 +0000 (08:34 +0100)
commit0c07cab725b853374d06ff190775e097d7d291eb
tree3f955552a1d3a5d6ccd22cda5432d5fc6c173009
parentce92180bf3127d10c9536b7d0b2225aa5b300daa
tipc: checking for NULL instead of IS_ERR()

The tipc_alloc_conn() function never returns NULL, it returns error
pointers, so I have fixed the check.

Fixes: 1283b46ef434 ("tipc: add ability to order and receive topology events in driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/server.c