diff options
| author | Mayank Rana <mrana@codeaurora.org> | 2015-10-05 19:08:47 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:02:55 -0700 |
| commit | 2c9b669728b17a1bd9ac8cf2d7e78501da9a8b10 (patch) | |
| tree | 90da12879c97478319d823245da5e374608f6205 /include/linux/start_kernel.h | |
| parent | 28ddcdd099b0514ac938eac487324f7b2c365ef5 (diff) | |
usb: gadget: composite: Protect cdev in composite_suspend()
With USB cable disconnect case, there is race happening when
composite_suspend() is being pre-empted just after getting
reference to cdev structure (suspend flow) and cdev->config
set to NULL as part of reset_config() (disconnect flow). This
results into composite_suspend() using bad value with cdev->config
which is resulting in some cases multiple time calling f->suspend().
Fix this issue by protecting cdev in composite_suspend() API.
CRs-Fixed: 916718
Change-Id: Id0b2a254f64621fcbc19c0556265e9b7b32f1382
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions
