Page MenuHomeFreeBSD

ufshci: return the real errno from SDB queue construction
ClosedPublic

Authored by jaeyoon on Aug 13 2026, 8:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 2, 8:25 PM
Unknown Object (File)
Thu, Oct 1, 10:02 AM
Unknown Object (File)
Wed, Sep 30, 7:46 PM
Unknown Object (File)
Wed, Sep 30, 6:05 PM
Unknown Object (File)
Mon, Sep 21, 6:22 AM
Unknown Object (File)
Fri, Sep 11, 4:27 PM
Unknown Object (File)
Wed, Sep 9, 10:13 AM
Unknown Object (File)
Wed, Sep 9, 4:11 AM
Subscribers
None

Details

Summary

ufshci_req_sdb_cmd_desc_construct() and ufshci_req_sdb_construct()
returned ENOMEM for every failure, so an EINVAL from bus_dma_tag_create()
was reported as a memory shortage. Capture and return the real errno,
and drop the cmd descriptor construct's now pointless out label.

No functional change: no caller inspects the value beyond propagating
it, so this only improves the diagnostics on an attach failure.

Sponsored by: Samsung Electronics

Diff Detail

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