Messages in this thread | | | Date | Fri, 20 Feb 2015 15:23:17 -0500 (EST) | Subject | Re: [PATCH] ipv4: ip_check_defrag should correctly check return value of skb_copy_bits | From | David Miller <> |
| |
From: Alexander Drozdov <al.drozdov@gmail.com> 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@gmail.com>
Applied and queued up for -stable, thanks.
| |