diff options
| author | Krzysztof Opasiak <[email protected]> | 2017-01-24 03:27:24 +0100 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2017-01-24 16:19:04 +0200 |
| commit | 749494b6bdbbaf0899aa1c62a1ad74cd747bce47 (patch) | |
| tree | 6dc19e8f58aa0c61e918c71011acacd3e89f337b /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 977ac789507a0270e4ac9426bfedcb37946bb084 (diff) | |
usb: gadget: f_hid: fix: Move IN request allocation to set_alt()
Since commit: ba1582f22231 ("usb: gadget: f_hid: use alloc_ep_req()")
we cannot allocate any requests in bind() as we check if we should
align request buffer based on endpoint descriptor which is assigned
in set_alt().
Allocating request in bind() function causes a NULL pointer
dereference.
This commit moves allocation of IN request from bind() to set_alt()
to prevent this issue.
Fixes: ba1582f22231 ("usb: gadget: f_hid: use alloc_ep_req()")
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