[Linux1394-cvslog] rev 616 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2002-10-14 20:06:29
|
Author: bencollins Date: 2002-10-14 16:06:26 -0400 (Mon, 14 Oct 2002) New Revision: 616 Modified: trunk/ieee1394_transactions.c Log: Sorry, here's the actual fix to check the return of find_next_zero_bit Modified: trunk/ieee1394_transactions.c ============================================================================== --- trunk/ieee1394_transactions.c (original) +++ trunk/ieee1394_transactions.c 2002-10-14 16:06:26.000000000 -0400 @@ -192,7 +192,8 @@ packet->tlabel = find_next_zero_bit(&tp->pool, 64, tp->next); tp->next = (packet->tlabel + 1) % 64; - __set_bit(packet->tlabel, &tp->pool); + /* Should _never_ happen */ + BUG_ON(test_and_set_bit(packet->tlabel, &tp->pool)); packet->tpool = tp; spin_unlock_irqrestore(&tp->lock, flags); |