diff options
| author | Krzysztof Opasiak <[email protected]> | 2017-01-19 18:55:28 +0100 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2017-01-24 11:04:17 +0200 |
| commit | aa65d11aa008f4de58a9cee7e121666d9d68505e (patch) | |
| tree | cbda81f51579395d2b960c26fe66a605fdb6c407 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 20d2ca955bd09639c7b01db5761d157c297aea0a (diff) | |
usb: gadget: f_hid: fix: Prevent accessing released memory
When we unlock our spinlock to copy data to user we may get
disabled by USB host and free the whole list of completed out
requests including the one from which we are copying the data
to user memory.
To prevent from this let's remove our working element from
the list and place it back only if there is sth left when we
finish with it.
Fixes: 99c515005857 ("usb: gadget: hidg: register OUT INT endpoint for SET_REPORT")
Cc: [email protected]
Tested-by: David Lechner <[email protected]>
Signed-off-by: Krzysztof Opasiak <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions