From: Zhu Yi Date: Wed, 13 Jul 2005 17:22:15 +0000 (-0500) Subject: Fix is_duplicate_packet() bug for fragmentation number setting. X-Git-Tag: v2.6.15-rc1~69^2~10^2~45 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f57ce7ce9c7498fe9c4090aaf389c89f3bd70f7e;p=linux-2.6 Fix is_duplicate_packet() bug for fragmentation number setting. Signed-off-by: James Ketrenos --- diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 8f7e9ac37f..93ed8718fd 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c @@ -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;