Page MenuHomeFreeBSD

ufshci: fix SCSI I/O request failure cleanup
ClosedPublic

Authored by jaeyoon on Aug 5 2026, 7:57 AM.
Tags
None
Referenced Files
F170865281: D58656.diff
Mon, Sep 7, 3:16 AM
Unknown Object (File)
Sat, Sep 5, 3:58 AM
Unknown Object (File)
Fri, Sep 4, 1:20 PM
Unknown Object (File)
Thu, Sep 3, 6:29 PM
Unknown Object (File)
Thu, Sep 3, 6:28 PM
Unknown Object (File)
Wed, Sep 2, 5:30 PM
Unknown Object (File)
Wed, Sep 2, 5:29 PM
Unknown Object (File)
Tue, Sep 1, 8:42 PM
Subscribers
None

Details

Summary

ufshchi_sim_scsiio() did not check the M_NOWAIT request allocation
for NULL. The CDB validation and submit failure paths also returned
without freeing the request.

Fail the CCB when the allocation returns NULL. Free the request on
every failure path. Mark the CCB as queued right before the submit,
so the failure paths above do not need to touch that flag.

Sponsored by: Samsung Electronics

Diff Detail

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