diff options
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 6b1b52c5593b..73f57a0e1523 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -195,7 +195,7 @@ struct sk_buff *__alloc_skb_head(gfp_t gfp_mask, int node) | |||
195 | * the tail pointer in struct sk_buff! | 195 | * the tail pointer in struct sk_buff! |
196 | */ | 196 | */ |
197 | memset(skb, 0, offsetof(struct sk_buff, tail)); | 197 | memset(skb, 0, offsetof(struct sk_buff, tail)); |
198 | skb->data = NULL; | 198 | skb->head = NULL; |
199 | skb->truesize = sizeof(struct sk_buff); | 199 | skb->truesize = sizeof(struct sk_buff); |
200 | atomic_set(&skb->users, 1); | 200 | atomic_set(&skb->users, 1); |
201 | 201 | ||
@@ -605,7 +605,7 @@ static void skb_release_head_state(struct sk_buff *skb) | |||
605 | static void skb_release_all(struct sk_buff *skb) | 605 | static void skb_release_all(struct sk_buff *skb) |
606 | { | 606 | { |
607 | skb_release_head_state(skb); | 607 | skb_release_head_state(skb); |
608 | if (likely(skb->data)) | 608 | if (likely(skb->head)) |
609 | skb_release_data(skb); | 609 | skb_release_data(skb); |
610 | } | 610 | } |
611 | 611 | ||