Commit e4dd8bf
be2net: fix potential memory leak in be_xmit()
The be_xmit() returns NETDEV_TX_OK without freeing skb
in case of be_xmit_enqueue() fails, add dev_kfree_skb_any() to fix it.
Fixes: 760c295 ("be2net: Support for OS2BMC.")
Signed-off-by: Wang Hai <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Kalesh AP <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Andrew Lunn <[email protected]>1 parent 2cb3f56 commit e4dd8bf
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
| 1384 | + | |
| 1385 | + | |
1388 | 1386 | | |
1389 | 1387 | | |
1390 | 1388 | | |
| |||
1393 | 1391 | | |
1394 | 1392 | | |
1395 | 1393 | | |
1396 | | - | |
| 1394 | + | |
1397 | 1395 | | |
1398 | 1396 | | |
1399 | 1397 | | |
| |||
1407 | 1405 | | |
1408 | 1406 | | |
1409 | 1407 | | |
| 1408 | + | |
| 1409 | + | |
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
| |||
0 commit comments