Skip to contentSkip to conversation

double unlock in aac_fib_send()

DISCUSSION Dan Carpenter 1 participant 1 message Apr 22, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

This is from drivers/scsi/aacraid/commsup.c (2.6.30-rc1)
518 } else if (down_interruptible(&fibptr->event_wait)) {
519 fibptr->done = 2;
520 up(&fibptr->event_wait);
521 }

down_interruptible() returns zero if it aquires the lock or -EINTR on failure. Since we failed to aquire the lock there is no need to call up() on line 520.

Found by smatch (http://repo.or.cz/w/smatch.git).

regards,
dan carpenter