From: Du Xing Date: Wed, 20 Mar 2013 12:47:46 +0000 (+0800) Subject: USB: usb-skeleton.c: fix blocked forever in skel_read X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~216 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c79041a44045a40329d9ada3f8679c4b30c5b76b;p=pandora-kernel.git 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 --- Reading git-diff-tree failed