USB: cdc-acm: disconnect stuck issue and acm_tty_open crash
authorVinayak Pane <vpane@nvidia.com>
Wed, 18 Apr 2012 05:58:05 +0000 (10:58 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:58:05 +0000 (10:58 +0530)
commita63bb86aee93392a33be115a132063f65d7eaa85
treeaa6d1f56626d5a24fb400fabd82f5113bf30c35b
parent636e4efcaa437dd6edf90fee84cf80ea9a1eb22f
USB: cdc-acm: disconnect stuck issue and acm_tty_open crash

acm_disconnect() should not kill the anchored URB because
they are already killed by stop_data_traffic().

Submit read URBs before control urb is sent because there is a
possibility of response coming immediately after ctrl is sent.

Bug 957744
Bug 961808

(cherry picked from commit 05c10cbe01f0275e5fe121d763692261c51987fc)
Reviewed-on: http://git-master/r/93673
Signed-off-by: Vinayak Pane <vpane@nvidia.com>

Change-Id: I5597e239ec3722afb6b4c1cd5fbe228e30af2a2d
Reviewed-on: http://git-master/r/96585
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

drivers/usb/class/cdc-acm.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
drivers/usb/class/cdc-acm.c