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
Unknown Object (File)
Tue, Sep 22, 1:19 PM
Unknown Object (File)
Sun, Sep 20, 7:37 AM
Unknown Object (File)
Sat, Sep 19, 9:18 AM
Unknown Object (File)
Fri, Sep 18, 8:24 AM
Unknown Object (File)
Fri, Sep 18, 6:17 AM
Unknown Object (File)
Thu, Sep 17, 4:13 PM
Unknown Object (File)
Wed, Sep 16, 8:33 AM
Unknown Object (File)
Mon, Sep 14, 12:22 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