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
F168878282: D58817.id184231.diff
Sun, Aug 30, 2:06 PM
F168877685: D58817.id184231.diff
Sun, Aug 30, 2:02 PM
F168838539: D58817.id.diff
Sun, Aug 30, 9:37 AM
Unknown Object (File)
Sat, Aug 29, 11:01 PM
Unknown Object (File)
Sat, Aug 29, 9:04 PM
Unknown Object (File)
Sat, Aug 29, 9:01 PM
Unknown Object (File)
Sat, Aug 29, 4:20 AM
Unknown Object (File)
Sat, Aug 29, 1:25 AM
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