diff options
| author | Lv Yunlong <[email protected]> | 2021-03-28 07:50:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-29 01:08:43 +0000 |
| commit | 1b479fb801602b22512f53c19b1f93a4fc5d5d9d (patch) | |
| tree | 52ded9bf40711d25bbbbb025a939a8a0e6258212 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/n... (diff) | |
| download | kernel-1b479fb801602b22512f53c19b1f93a4fc5d5d9d.tar.gz kernel-1b479fb801602b22512f53c19b1f93a4fc5d5d9d.zip | |
drivers/net/wan/hdlc_fr: Fix a double free in pvc_xmit
In pvc_xmit, if __skb_pad(skb, pad, false) failed, it will free
the skb in the first time and goto drop. But the same skb is freed
by kfree_skb(skb) in the second time in drop.
Maintaining the original function unchanged, my patch adds a new
label out to avoid the double free if __skb_pad() failed.
Fixes: f5083d0cee08a ("drivers/net/wan/hdlc_fr: Improvements to the code of pvc_xmit")
Signed-off-by: Lv Yunlong <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
