Re: [Patch RFC 23/37] usb: gadgetfs: Convert semaphore to mutex

From: Daniel Walker
Date: Sun Jul 26 2009 - 18:56:41 EST


On Sun, 2009-07-26 at 08:18 +0000, Thomas Gleixner wrote:
> - if (down_trylock (&epdata->lock) != 0)
> + if (mutex_trylock(&epdata->lock) != 0)


You forget the mutex_trylock has an inverted return value..

Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/