[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)
commit3ea15966ed59f2bc20928c7b0496b4585f6de206
tree45c392aa393fe4ad245b6593b5a74f212f010637
parente52b1d3afe698cb77c080ecbe9e745257ff8c81b
[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