]> 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)
commitbb5ea3ff514aa41a5114b0a6f5fb899fdbea1fd7
tree6cac4cb3e41c0a55f25e1e7c35af6c168c8b432a
parenta24103829b446840d84cad1ad8748bf9d98c4f79
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: 90bb99b4fbce ("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