diff options
| author | Ziqi Chen <ziqic@codeaurora.org> | 2017-08-02 20:21:45 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-08-02 05:34:46 -0700 |
| commit | d338487c10ff37cb0a7a86e46e498757066e5557 (patch) | |
| tree | afd214c3ca2273fe87d579d0d37de64a36cbeb93 /kernel/locking/mutex-debug.c | |
| parent | 560d31410c7a0eaf2eb37d9e0a020563f6524815 (diff) | |
usb: dwc3: initialize ep0_usb_req.request.dma to avoid crash
It seems possibility that usb_gadget_map_request may not been called
during usb cable connected so ep0_usb_req.request.dma is still by
default 0 which will pass the if condition in unmapping, hence unmap
a request which never been mapped.
Initialize ep0_usb_req.request.dma to DMA_ERROR_CODE will avoid this
corner case crash.
Change-Id: Icf63dc383304c83fe36fb908226240e139a7f9fc
Signed-off-by: Ziqi Chen <ziqic@codeaurora.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions
