Page MenuHomeFreeBSD

ufshci: abort submission when payload DMA mapping fails
ClosedPublic

Authored by jaeyoon on Wed, Aug 5, 7:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 29, 8:02 PM
Unknown Object (File)
Fri, Aug 28, 10:05 AM
Unknown Object (File)
Fri, Aug 28, 10:02 AM
Unknown Object (File)
Wed, Aug 26, 5:09 PM
Unknown Object (File)
Tue, Aug 25, 9:06 AM
Unknown Object (File)
Tue, Aug 25, 9:01 AM
Unknown Object (File)
Sun, Aug 23, 10:48 PM
Unknown Object (File)
Fri, Aug 21, 8:48 PM
Subscribers
None

Details

Summary

When bus_dmamap_load_mem() failed, ufshci_req_queue_prepare_prdt()
manually completed and released the tracker, but its caller kept going:
it built the UTRD, set the slot back to SCHEDULED, and rang the
doorbell for a tracker whose request had already been freed. Return the
mapping error and stop the submission so the released tracker is not
resurrected.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable