]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: Fix leak on transmit failure
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Tue, 5 Dec 2017 20:41:17 +0000 (13:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 23:03:53 +0000 (18:03 -0500)
commit66e98e88295995b164df7d1bfa6135111e093de7
tree6cac4cb3e41c0a55f25e1e7c35af6c168c8b432a
parent0ec01044b4f97f3bad46692fad614e0473d42f30
net: qualcomm: rmnet: Fix leak on transmit failure

If a skb in transmit path does not have sufficient headroom to add
the map header, the skb is not sent out and is never freed.

Fixes: d1878d04ca05 ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c