Re: [PATCH] ipv4: ip_check_defrag should correctly check return value of skb_copy_bits
From: David Miller
Date: Fri Feb 20 2015 - 15:23:24 EST
From: Alexander Drozdov <al.drozdov@xxxxxxxxx>
Date: Tue, 17 Feb 2015 13:33:46 +0300
> 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 <al.drozdov@xxxxxxxxx>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/