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: omap-for-v4.1/wl12xx-dt~68^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba04a9e0c869498889b6445fd06cbe7da9bb834;p=pandora-kernel.git ipv4: ip_check_defrag should correctly check return value of skb_copy_bits 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 --- Reading git-diff-tree failed