[PATCH] ssb: Make ssb_wait_bit multi-bit safe

Rafał Miłecki zajec5 at gmail.com
Mon Feb 14 19:04:36 EST 2011


W dniu 15 lutego 2011 00:59 użytkownik Michael Büsch <mb at bu3sch.de> napisał:
> On Tue, 2011-02-15 at 00:44 +0100, Rafał Miłecki wrote:
>> 2011/2/15 Michael Büsch <mb at bu3sch.de>:
>> > ssb_wait_bit was designed for only one-bit bitmasks.
>> > People start using it for multi-bit bitmasks. Make the "set" case
>> > is safe for this. The "unset" case is already safe.
>>
>> Thanks :)
>
> This should not change the behavior of your patch, though,
> as you only add an "unset" case, which was already correct.
>
> So this doesn't fix an actual bug but rather hardens the code
> for future use.

Yes, I can see that :)

-- 
Rafał



More information about the b43-dev mailing list