]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit332fed94328667fa9759d884e940d8c91586c95b
tree995c7a2198797ba0fad06886d08e8133f9f934c7
parent40f9462cd6996f93ff47ade2e100339504d21a77
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