diff options
Diffstat (limited to 'kernel/net/tipc/subscr.c')
-rw-r--r-- | kernel/net/tipc/subscr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/net/tipc/subscr.c b/kernel/net/tipc/subscr.c index 69ee2eeef..f9ff73a8d 100644 --- a/kernel/net/tipc/subscr.c +++ b/kernel/net/tipc/subscr.c @@ -296,7 +296,8 @@ static void tipc_subscrb_rcv_cb(struct net *net, int conid, if (tipc_subscrp_create(net, (struct tipc_subscr *)buf, subscrb, &sub)) return tipc_conn_terminate(tn->topsrv, subscrb->conid); - tipc_nametbl_subscribe(sub); + if (sub) + tipc_nametbl_subscribe(sub); } /* Handle one request to establish a new subscriber */ |