Page MenuHomeFreeBSD

ufshci: return the real errno from SDB queue construction
ClosedPublic

Authored by jaeyoon on Thu, Aug 13, 8:37 AM.
Tags
None
Referenced Files
F171544057: D58815.id.diff
Fri, Sep 11, 4:27 PM
Unknown Object (File)
Wed, Sep 9, 10:13 AM
Unknown Object (File)
Wed, Sep 9, 4:11 AM
Unknown Object (File)
Tue, Sep 8, 7:20 PM
Unknown Object (File)
Tue, Sep 8, 4:33 PM
Unknown Object (File)
Sun, Sep 6, 3:33 AM
Unknown Object (File)
Sun, Sep 6, 2:17 AM
Unknown Object (File)
Sat, Sep 5, 10:37 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