]> err.no Git - linux-2.6/commitdiff
Fix is_duplicate_packet() bug for fragmentation number setting.
authorZhu Yi <yi.zhu@intel.com>
Wed, 13 Jul 2005 17:22:15 +0000 (12:22 -0500)
committerJames Ketrenos <jketreno@linux.intel.com>
Mon, 7 Nov 2005 23:50:16 +0000 (17:50 -0600)
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
drivers/net/wireless/ipw2200.c

index 8f7e9ac37f86b57c19ab7af80b20c781a39cb2ec..93ed8718fd6baa7d6cc7fd8b2bb23d10a6d56a97 100644 (file)
@@ -7754,10 +7754,10 @@ static inline int is_duplicate_packet(struct ipw_priv *priv,
                if (*last_frag + 1 != frag)
                        /* out-of-order fragment */
                        goto drop;
-               *last_frag = frag;
        } else
                *last_seq = seq;
 
+       *last_frag = frag;
        *last_time = jiffies;
        return 0;