ibmveth: check return of skb_linearize in ibmveth_start_xmit
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Thu, 3 Mar 2016 21:22:36 +0000 (15:22 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 19:38:52 +0000 (14:38 -0500)
commit2c42bf4b43170ee83354bb68a12f8fc84c2e27a9
treee2cb055dbdf55853f61c13ff1f00fc26da41b96c
parent48906f62c96cc2cd35753e59310cb70eb08cc6a5
ibmveth: check return of skb_linearize in ibmveth_start_xmit

If skb_linearize fails, the driver should drop the packet
instead of trying to copy it into the bounce buffer.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c