mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 20:34:20 +08:00
llc: free the right skb
We are freeing skb instead of nskb, resulting in a double free on skb and a leak from nskb. Signed-off-by: Sorin Dumitru <sdumitru@ixiacom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8b82f7c3c9
commit
91d27a8650
@ -268,7 +268,7 @@ static int llc_station_ac_send_null_dsap_xid_c(struct sk_buff *skb)
|
|||||||
out:
|
out:
|
||||||
return rc;
|
return rc;
|
||||||
free:
|
free:
|
||||||
kfree_skb(skb);
|
kfree_skb(nskb);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ static int llc_station_ac_send_xid_r(struct sk_buff *skb)
|
|||||||
out:
|
out:
|
||||||
return rc;
|
return rc;
|
||||||
free:
|
free:
|
||||||
kfree_skb(skb);
|
kfree_skb(nskb);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,7 +322,7 @@ static int llc_station_ac_send_test_r(struct sk_buff *skb)
|
|||||||
out:
|
out:
|
||||||
return rc;
|
return rc;
|
||||||
free:
|
free:
|
||||||
kfree_skb(skb);
|
kfree_skb(nskb);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user