Commit 91d27a86 authored by Sorin Dumitru's avatar Sorin Dumitru Committed by David S. Miller

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: default avatarSorin Dumitru <sdumitru@ixiacom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b82f7c3
...@@ -268,7 +268,7 @@ static int llc_station_ac_send_null_dsap_xid_c(struct sk_buff *skb) ...@@ -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) ...@@ -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) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment