commit | b33f33a13f54df4471447fa67bf5a6eb50af3040 | [log] [tgz] |
---|---|---|
author | Manu Gautam <mgautam@codeaurora.org> | Fri Sep 09 14:35:57 2011 +0530 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 09:58:56 2011 -0700 |
tree | 8e62661a25ee3f260cbedb79f58b84470b60b0e0 | |
parent | 2b0234a369b8b630ad34655646d0499924085bbb [diff] |
usb: diag: Check for USB connect state in usb_diag_read/write With new composition framework unbind function of the driver is called during composition switch. This results in NULL pointer dereference in usb_diag_read/write while trying to access priv_usb field of usb_diag_ch. WIth the previous compositon framework unbind function was not called, hence, this issue was also not observed. Signed-off-by: Manu Gautam <mgautam@codeaurora.org>