You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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: 14c04493cb ("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>
This commit is contained in:
committed by
David S. Miller
parent
6575f35415
commit
c75e427d93
+1
-1
@@ -504,7 +504,7 @@ bool tipc_topsrv_kern_subscr(struct net *net, u32 port, u32 type,
|
||||
*(u32 *)&sub.usr_handle = port;
|
||||
|
||||
con = tipc_alloc_conn(tipc_topsrv(net));
|
||||
if (!con)
|
||||
if (IS_ERR(con))
|
||||
return false;
|
||||
|
||||
*conid = con->conid;
|
||||
|
||||
Reference in New Issue
Block a user