From: Dan Carpenter Date: Tue, 19 Jul 2011 22:51:49 +0000 (+0000) Subject: skbuff: fix error handling in pskb_copy() X-Git-Tag: v3.1-rc1~316^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1511022c9aabf253253e35730a6a3b945a2a53a9;p=pandora-kernel.git skbuff: fix error handling in pskb_copy() There are two problems: 1) "n" was allocated with alloc_skb() so we should free it with kfree_skb() instead of regular kfree(). 2) We return the freed pointer instead of NULL. Signed-off-by: Dan Carpenter Reviewed-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed