net: ehea: avoid null pointer dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Tue, 17 May 2016 20:28:54 +0000 (22:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2016 18:25:30 +0000 (11:25 -0700)
commit1740c29a46b30a2f157afc473156f157e599d4c2
tree6ab3c251c7bcfb778fd0da38efdfa79f04912c4d
parent099a728d5819da80ff9fff3df980ea6e89a01e60
net: ehea: avoid null pointer dereference

ehea_get_port may return NULL. Do not dereference NULL value.

Fixes: 8c4877a4128e ("ehea: Use the standard logging functions")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@debian.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c