mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04: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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8b82f7c3c9
commit
91d27a8650
1 changed files with 3 additions and 3 deletions
|
|
@ -268,7 +268,7 @@ static int llc_station_ac_send_null_dsap_xid_c(struct sk_buff *skb)
|
|||
out:
|
||||
return rc;
|
||||
free:
|
||||
kfree_skb(skb);
|
||||
kfree_skb(nskb);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
@ -293,7 +293,7 @@ static int llc_station_ac_send_xid_r(struct sk_buff *skb)
|
|||
out:
|
||||
return rc;
|
||||
free:
|
||||
kfree_skb(skb);
|
||||
kfree_skb(nskb);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
@ -322,7 +322,7 @@ static int llc_station_ac_send_test_r(struct sk_buff *skb)
|
|||
out:
|
||||
return rc;
|
||||
free:
|
||||
kfree_skb(skb);
|
||||
kfree_skb(nskb);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue