commit | b1795544f83e8ea0407c547d68856e2276b62697 | [log] [tgz] |
---|---|---|
author | Jack Pham <jackp@codeaurora.org> | Tue Sep 04 17:13:37 2012 -0700 |
committer | Jack Pham <jackp@codeaurora.org> | Tue Sep 04 17:13:37 2012 -0700 |
tree | fa03b24bafd681ec98f4790515b8759187ef6447 | |
parent | fe0a7d26d3e8dd1f42840dc2a61b70b0d899d0b1 [diff] |
usb: diag_bridge: Fix NULL pointer crash during disconnect DIAG I/O could be executing concurrently when the device/interface is disconnected. In such cases the usb_interface pointer could become NULL while the read or write functions are about to access it. Prevent these NULL pointer dereferences by guarding the pointer with a mutex. CRs-fixed: 393826 Change-Id: I16a4a8d928f5e18531627b03f2ce6358ec3a9d1f Signed-off-by: Jack Pham <jackp@codeaurora.org>