]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] USB: Add timeout to usb_lock_device_for_reset
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 11 Aug 2005 14:15:39 +0000 (10:15 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Sep 2005 23:28:21 +0000 (16:28 -0700)
commite1ca327753bbda3fe6bfd2901e270b28c8688fd7
tree45c392aa393fe4ad245b6593b5a74f212f010637
parentdfeeb10b07aa4e6fc92be6f1daeec032b08daff8
[PATCH] USB: Add timeout to usb_lock_device_for_reset

This patch (as555) modifies the already-awkward
usb_lock_device_for_reset routine in usbcore by adding a timeout.  The
whole point of the routine is that the caller wants to acquire some
semaphores in the wrong order; protecting against the possibility of
deadlock by timing out seems only prudent.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/usb.c