On Fri, Oct 06, 2006 at 09:33:26AM +0200, Oliver Neukum wrote: > Hi, > > this exports the input layer's device mutex. This will allow a simple > fix for the common race condition between opening an input device > and USB suspend. > > Regards > Oliver > > Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> >
> --- current/drivers/input/input.c 2006-09-20 05:42:06.000000000 +0200 > +++ linux-2.6.18/drivers/input/input.c 2006-10-03 14:53:39.000000000 > +0200 > @@ -296,6 +296,18 @@ > } > EXPORT_SYMBOL(input_close_device); > > +void input_lock_device(struct input_dev *dev) > +{ > + mutex_lock(&dev->mutex); > +} > +EXPORT_SYMBOL(input_lock_device); EXPORT_SYMBOL_GPL() perhaps? thanks, greg k-h ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel