diff options
| author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2017-03-02 16:07:13 +0530 |
|---|---|---|
| committer | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2017-03-03 18:53:25 +0530 |
| commit | 399fa239e44b21cac2b709f3059d4c620294ccbd (patch) | |
| tree | 27d6c4fbad998b84c0c62d115b6a3bca6df32bd3 /tools/perf/util/trace-event-scripting.c | |
| parent | 3a7e752617514960c5cecdf84e12b13dc63c04c7 (diff) | |
USB: composite: Check return value before composite_setup_complete()
Currently driver is calling composite_setup_complete() when request
queuing to control endpoint fails. During disconnect or composition switch,
ep_queue() fails with -ESHUTDOWN return value. In this case also, driver is
calling composite_setup_complete(), which leads to invalid pointer
dereference. Fix it by not calling composite_setup_complete() in case of
return value of -ESHUTDOWN as anyhow composite_unbind() will take care of
clearing pending flags before freeing request buffers.
Change-Id: I87ea6ecb1e925c6b36dede59486e49ba3a4e90c7
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
