usb: gadget: adb: allow freezing in adb_read
authorColin Cross <ccross@android.com>
Mon, 5 Mar 2012 21:29:45 +0000 (13:29 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:53 +0000 (13:51 -0800)
commitfe7aa575bb73bef711cfa6779c6c631c8ee795b5
treead85f90e23a1f96b64f7b04d5a9f75fbe031dbad
parent272014a78e113afcdda4aa0b2dd6d386c7523df7
usb: gadget: adb: allow freezing in adb_read

wait_event_interruptible in adb_read might return -ERESTARTSYS if
userspace is frozen during adb_read or another signal is delivered
to adb.  If so, don't set dev->error to avoid resetting the adb
connection.

Change-Id: I5a7baa013a9a3a3b5305de7e6a0d18546a560018
Signed-off-by: Colin Cross <ccross@android.com>
drivers/usb/gadget/f_adb.c