[TIPC] net/tipc/port.c: fix NULL dereference
authorAdrian Bunk <bunk@stusta.de>
Wed, 1 Nov 2006 00:59:35 +0000 (16:59 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 1 Nov 2006 23:42:33 +0000 (15:42 -0800)
commitd55b4c631e89a008e80b003e5aa4291d9ec800ac
tree3245eaef822d00a769c83515abd5b34a524aacdd
parent3ccfc65c5004e5fe5cfbffe43b8acc686680b53e
[TIPC] net/tipc/port.c: fix NULL dereference

The correct order is: NULL check before dereference

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/port.c