Page MenuHomeFreeBSD

ufshci: check SDB queue allocations for failure
AcceptedPublic

Authored by jaeyoon on Wed, Aug 5, 8:04 AM.

Details

Reviewers
imp
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 75380
Build 72263: arc lint + arc unit