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
F167222942: D58817.diff
Thu, Aug 20, 2:08 AM
F167181114: D58817.id183970.diff
Wed, Aug 19, 5:04 PM
F167176069: D58817.id183970.diff
Wed, Aug 19, 4:27 PM
Unknown Object (File)
Tue, Aug 18, 11:29 PM
Unknown Object (File)
Tue, Aug 18, 10:03 PM
Unknown Object (File)
Tue, Aug 18, 8:13 PM
Unknown Object (File)
Tue, Aug 18, 1:29 PM
Unknown Object (File)
Tue, Aug 18, 7:01 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 75553
Build 72436: arc lint + arc unit