Page MenuHomeFreeBSD

ufshci: validate the CDB before allocating a request
ClosedPublic

Authored by jaeyoon on Thu, Aug 13, 8:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 26, 5:34 AM
Unknown Object (File)
Tue, Aug 25, 8:24 PM
Unknown Object (File)
Mon, Aug 24, 10:46 PM
Unknown Object (File)
Sun, Aug 23, 3:30 PM
Unknown Object (File)
Sat, Aug 22, 1:14 PM
Unknown Object (File)
Fri, Aug 21, 3:12 PM
Unknown Object (File)
Fri, Aug 21, 9:17 AM
Unknown Object (File)
Thu, Aug 20, 8:54 PM
Subscribers
None

Details

Summary

The CDB pointer and length checks depend only on the CCB, so perform
them before allocating and initializing the request. This avoids a
wasted allocation for invalid CCBs on the I/O path and removes one
request-free error path.

Sponsored by: Samsung Electronics

Diff Detail

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