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:
Rohith Kollalsi <quic_rkollals@quicinc.com>
Loading
Please register or sign in to comment