usb: cdc-acm: Add acm handle validity check
authorSeshendra Gadagottu <sgadagottu@nvidia.com>
Sat, 3 Mar 2012 04:03:14 +0000 (09:03 +0530)
committerSimone Willett <swillett@nvidia.com>
Tue, 6 Mar 2012 01:27:02 +0000 (17:27 -0800)
commit4454d77bc84584d9bcce09ca81a7ea681a09eda4
tree37596d319b44b43054931f0369895fcf6e243f74
parent64f409397e158cead2b1c9fc72ef886e13e5f6ce
usb: cdc-acm: Add acm handle validity check

Added check for acm handle validity before doing any action
in acm_suspend, acm_resume and acm_reset_resume functions.

Bug 939237

Change-Id: Idc5d7db6bd405056a90b85009825ccbd03547757
Signed-off-by: Seshendra Gadagottu<sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/83413
(cherry picked from commit 1dd9736cd2df12c0315a44c95010cb64eee04050)
Reviewed-on: http://git-master/r/87504
Reviewed-by: Steve Lin <stlin@nvidia.com>
drivers/usb/class/cdc-acm.c