Page MenuHomeFreeBSD

ufshci: fix SCSI I/O request failure cleanup
ClosedPublic

Authored by jaeyoon on Wed, Aug 5, 7:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 28, 6:09 PM
Unknown Object (File)
Fri, Aug 28, 6:04 PM
Unknown Object (File)
Thu, Aug 27, 10:02 AM
Unknown Object (File)
Thu, Aug 27, 10:00 AM
Unknown Object (File)
Wed, Aug 26, 11:11 AM
Unknown Object (File)
Tue, Aug 25, 8:01 PM
Unknown Object (File)
Tue, Aug 25, 9:02 AM
Unknown Object (File)
Fri, Aug 21, 3:55 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