Commit 1f676e60 authored by Rusty Russell's avatar Rusty Russell Committed by Jeff Garzik

[PATCH] drivers_net_wireless_airo.c '< 0' comparison make sense

 From:  <adobriyan@mail.ru>

The sense of the comparison was signed, but the code was testing
an unsigned variable for less-than-zero.
parent aba7eead
......@@ -1505,7 +1505,7 @@ static int RxSeqValid (struct airo_info *ai,miccntx *context,int mcast,u32 micSe
seq = micSeq - (context->window - 33);
//Too old of a SEQ number to check.
if ((u32)seq < 0)
if ((s32)seq < 0)
return ERROR;
if ( seq > 64 ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment