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
F171477419: D58817.id183970.diff
Fri, Sep 11, 8:31 AM
Unknown Object (File)
Thu, Sep 10, 8:02 AM
Unknown Object (File)
Wed, Sep 9, 10:40 AM
Unknown Object (File)
Wed, Sep 9, 9:02 AM
Unknown Object (File)
Wed, Sep 9, 6:43 AM
Unknown Object (File)
Tue, Sep 8, 7:18 AM
Unknown Object (File)
Mon, Sep 7, 12:33 PM
Unknown Object (File)
Sun, Sep 6, 7:26 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