commit | 3ea15966ed59f2bc20928c7b0496b4585f6de206 | [log] [tgz] |
---|---|---|
author | Alan Stern <stern@rowland.harvard.edu> | Thu Aug 11 10:15:39 2005 -0400 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu Sep 08 16:28:21 2005 -0700 |
tree | 45c392aa393fe4ad245b6593b5a74f212f010637 | |
parent | e52b1d3afe698cb77c080ecbe9e745257ff8c81b [diff] |
[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>