From: Eric Dumazet Date: Tue, 25 Jan 2011 23:18:38 +0000 (+0000) Subject: net: add kmemcheck annotation in __alloc_skb() X-Git-Tag: v2.6.38-rc4~15^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2aa3665cf8510b1665ee2f5a9525cf7be6dec4f;p=pandora-kernel.git net: add kmemcheck annotation in __alloc_skb() pskb_expand_head() triggers a kmemcheck warning when copy of skb_shared_info is done in pskb_expand_head() This is because destructor_arg field is not necessarily initialized at this point. Add kmemcheck_annotate_variable() call in __alloc_skb() to instruct kmemcheck this is a normal situation. Resolves bugzilla.kernel.org 27212 Reference: https://bugzilla.kernel.org/show_bug.cgi?id=27212 Reported-by: Christian Casteyde Signed-off-by: Eric Dumazet CC: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed