Page MenuHomeFreeBSD

ufshci: return the real errno from SDB queue construction
AcceptedPublic

Authored by jaeyoon on Thu, Aug 13, 8:37 AM.
Tags
None
Referenced Files
F166693173: D58815.diff
Sat, Aug 15, 3:49 PM
Unknown Object (File)
Thu, Aug 13, 12:15 PM
Unknown Object (File)
Thu, Aug 13, 12:14 PM
Subscribers
None

Details

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