summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-sched.c
diff options
context:
space:
mode:
authorDu Xing <duxing2007@gmail.com>2013-03-20 13:47:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 21:32:20 +0100
commitc79041a44045a40329d9ada3f8679c4b30c5b76b (patch)
treeade4c7d97b3569aa04ec5f48eaa4a22a99583291 /drivers/usb/host/ehci-sched.c
parentUSB: cdc-wdm: implement IOCTL_WDM_MAX_COMMAND (diff)
downloadlinux-c79041a44045a40329d9ada3f8679c4b30c5b76b.tar.xz
linux-c79041a44045a40329d9ada3f8679c4b30c5b76b.zip
USB: usb-skeleton.c: fix blocked forever in skel_read
In skel_read,the reader blocked in wait_for_completion before submit bulk in urb. Using processed_urb is for retaining the completion in the case that previous interruptible wait in skel_read was interrupted and complete before next skel_read. Replacing completion with waitqueue can avoid working around the counting nature of completions and fix the bug. Signed-off-by: Du Xing duxing2007@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
0 files changed, 0 insertions, 0 deletions