sunvnet: fix NULL pointer dereference
authorDavid L Stevens <david.stevens@oracle.com>
Wed, 12 Nov 2014 15:58:47 +0000 (10:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 18:51:23 +0000 (13:51 -0500)
commitc647cc3fd5ee3c3aba34a00326e684684d491de0
treea7a21ca9361c4094b2e4ed70e6686024ac2ae3a7
parentee47ad42c5868ffad569a94dd680f7ae79de2fb9
sunvnet: fix NULL pointer dereference

This patch fixes a NULL pointer dereference when __tx_port_find() doesn't
find a matching port.

Signed-off-by: David L Stevens <david.stevens@oracle.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet.c