net: thunderx: avoid null pointer dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Tue, 17 May 2016 19:40:38 +0000 (21:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2016 18:25:30 +0000 (11:25 -0700)
commit099a728d5819da80ff9fff3df980ea6e89a01e60
treed4c7a801bd98437a3e890e3856eba3b21cf44640
parent07b75260ebc2c789724c594d7eaf0194fa47b3be
net: thunderx: avoid null pointer dereference

In function bgx_lmac_handler only use a member of
lmac after checking it is not null.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c