Page MenuHomeFreeBSD

ufshci: check SDB queue allocations for failure
ClosedPublic

Authored by jaeyoon on Aug 5 2026, 8:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 20, 9:28 AM
Unknown Object (File)
Sun, Sep 20, 9:11 AM
Unknown Object (File)
Fri, Sep 18, 8:46 AM
Unknown Object (File)
Fri, Sep 18, 3:42 AM
Unknown Object (File)
Thu, Sep 17, 3:24 AM
Unknown Object (File)
Thu, Sep 17, 2:33 AM
Unknown Object (File)
Wed, Sep 16, 4:20 PM
Unknown Object (File)
Mon, Sep 7, 7:27 PM
Subscribers
None

Details

Summary

The hardware queue and ucd_bus_addr allocations use M_NOWAIT but were
used without a NULL check, and the payload bus_dmamap_create() return
value was ignored, so a failed allocation was only discovered by
faulting on it later. Fail the construction instead. The teardown
path handles the partially constructed queue.

Sponsored by: Samsung Electronics

Diff Detail

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