sunvnet: fix potential NULL pointer dereference
authorDavid L Stevens <david.stevens@oracle.com>
Wed, 1 Oct 2014 15:05:27 +0000 (11:05 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2014 19:26:09 +0000 (15:26 -0400)
commita29c9c43bb633a9965909cd548879fee4aa789a4
tree995c7a2198797ba0fad06886d08e8133f9f934c7
parente506d405ac7d34d03996c97ac68aa2ac010be64a
sunvnet: fix potential NULL pointer dereference

One of the error cases for vnet_start_xmit()'s "out_dropped" label
is port == NULL, so only mess with port->clean_timer when port is not NULL.

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