diff options
author | Wei Yongjun <[email protected]> | 2022-11-14 11:06:26 +0000 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-12-18 20:29:53 -0500 |
commit | 08c94d80b2da481652fb633e79cbc41e9e326a91 (patch) | |
tree | f4094790e2b1b705c22d419e080034b2bc0e1579 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 77a67255609606164e1042f3bf7452a568a700e4 (diff) |
scsi: bnx2fc: Fix skb double free in bnx2fc_rcv()
skb_share_check() already drops the reference to the skb when returning
NULL. Using kfree_skb() in the error handling path leads to an skb double
free.
Fix this by removing the variable tmp_skb, and return directly when
skb_share_check() returns NULL.
Fixes: 01a4cc4d0cd6 ("bnx2fc: do not add shared skbs to the fcoe_rx_list")
Signed-off-by: Wei Yongjun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions