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

Skip to content
Commit fddd9b5b authored by Rohith Kollalsi's avatar Rohith Kollalsi Committed by Gerrit - the friendly Code Review server
Browse files

usb: u_qdss: Add proper error handling in case of mapping failure



In case, if mapping of data_buffer or desc_buffer fails in
usb_bam_alloc_buffer, iova of it could be corrupt and there
is no error handling present for that failure. So qdss driver
thinks that qdss_set_data_connection is successful and proceeds
for ep_queue which can lead to usb controller accessing corrupt
iova address outside the dma pool of usb. Fix this by adding
proper error handling in case of data_buffer or desc_buffer
mapping failure.

Change-Id: Id15ab1f90be052ca0fac209dc619b2e740e1531a
Signed-off-by: default avatarRohith Kollalsi <quic_rkollals@quicinc.com>
parent d6a2023c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment