diff options
Diffstat (limited to 'net/llc/llc_sap.c')
-rw-r--r-- | net/llc/llc_sap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/llc/llc_sap.c b/net/llc/llc_sap.c index 9f064b3a4335..e6d538937f93 100644 --- a/net/llc/llc_sap.c +++ b/net/llc/llc_sap.c | |||
@@ -31,7 +31,7 @@ | |||
31 | * Allocates an sk_buff for frame and initializes sk_buff fields. | 31 | * Allocates an sk_buff for frame and initializes sk_buff fields. |
32 | * Returns allocated skb or %NULL when out of memory. | 32 | * Returns allocated skb or %NULL when out of memory. |
33 | */ | 33 | */ |
34 | struct sk_buff *llc_alloc_frame(struct net_device *dev) | 34 | struct sk_buff *llc_alloc_frame(struct sock *sk, struct net_device *dev) |
35 | { | 35 | { |
36 | struct sk_buff *skb = alloc_skb(128, GFP_ATOMIC); | 36 | struct sk_buff *skb = alloc_skb(128, GFP_ATOMIC); |
37 | 37 | ||
@@ -41,6 +41,8 @@ struct sk_buff *llc_alloc_frame(struct net_device *dev) | |||
41 | skb->protocol = htons(ETH_P_802_2); | 41 | skb->protocol = htons(ETH_P_802_2); |
42 | skb->dev = dev; | 42 | skb->dev = dev; |
43 | skb->mac.raw = skb->head; | 43 | skb->mac.raw = skb->head; |
44 | if (sk != NULL) | ||
45 | skb_set_owner_w(skb, sk); | ||
44 | } | 46 | } |
45 | return skb; | 47 | return skb; |
46 | } | 48 | } |