]> git.baikalelectronics.ru Git - kernel.git/commit
net: dm9051: Fix missing dev_kfree_skb() in dm9051_loop_rx()
authorYuan Can <yuancan@huawei.com>
Mon, 21 Nov 2022 03:32:26 +0000 (03:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Nov 2022 12:43:14 +0000 (12:43 +0000)
commitcba166d1e8a9699720a32e646ca093758f3ccfcd
treea0cb27d0a90f678db1b1582024babe5be0d03b5f
parentf6ba32a778501afbfd3c4b80adb2a7df2485643c
net: dm9051: Fix missing dev_kfree_skb() in dm9051_loop_rx()

The dm9051_loop_rx() returns without release skb when dm9051_stop_mrcmd()
returns error, free the skb to avoid this leak.

Fixes: b4c6114939b8 ("net: Add dm9051 driver")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/davicom/dm9051.c