summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-09-03 06:27:08 +0000
committerDavid S. Miller <davem@davemloft.net>2010-09-03 09:44:51 -0700
commit52ee7a04a0f88815a71acdc604a854fb30dcbe45 (patch)
tree78a42b581cbb61f74bfb56cdd7f6d4b0afeb75e5 /net/core
parent1a18abaa87c4c68a13c2ffcace39a078605b980a (diff)
downloadop-kernel-dev-52ee7a04a0f88815a71acdc604a854fb30dcbe45.zip
op-kernel-dev-52ee7a04a0f88815a71acdc604a854fb30dcbe45.tar.gz
net: remove two kmemcheck annotations
__alloc_skb() uses a memset() to clear all the beginning of skb, including bitfields contained in 'flags1' & 'flags2'. We dont need any more to use kmemcheck_annotate_bitfield() on these fields. However, we still need it for the clone part, which is not cleared. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/skbuff.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 231dff0..c030cf8 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -202,8 +202,6 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
skb->data = data;
skb_reset_tail_pointer(skb);
skb->end = skb->tail + size;
- kmemcheck_annotate_bitfield(skb, flags1);
- kmemcheck_annotate_bitfield(skb, flags2);
#ifdef NET_SKBUFF_DATA_USES_OFFSET
skb->mac_header = ~0U;
#endif
OpenPOWER on IntegriCloud