Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit dc9006ff authored by Ziqi Chen's avatar Ziqi Chen Committed by Vijayavardhan Vennapusa
Browse files

usb: dwc3: initialize ep0_usb_req.request.dma to avoid kernel panic



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 kernel panic.

Change-Id: Icf63dc383304c83fe36fb908226240e139a7f9fc
Signed-off-by: default avatarZiqi Chen <ziqic@codeaurora.org>
parent a7306e91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment