From: Alexander Drozdov Date: Tue, 17 Feb 2015 10:33:46 +0000 (+0300) Subject: ipv4: ip_check_defrag should correctly check return value of skb_copy_bits X-Git-Tag: v3.2.69~163 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aafdaa379ae3fb58acefa092b8edc3a64c929bb9;p=pandora-kernel.git ipv4: ip_check_defrag should correctly check return value of skb_copy_bits commit fba04a9e0c869498889b6445fd06cbe7da9bb834 upstream. skb_copy_bits() returns zero on success and negative value on error, so it is needed to invert the condition in ip_check_defrag(). Fixes: 1bf3751ec90c ("ipv4: ip_check_defrag must not modify skb before unsharing") Signed-off-by: Alexander Drozdov Acked-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed