Page MenuHomeFreeBSD

ufshci: free the correct address when DMA load fails
ClosedPublic

Authored by jaeyoon on Aug 5 2026, 8:02 AM.
Tags
None
Referenced Files
F170570792: D58659.id183422.diff
Sat, Sep 5, 11:17 AM
F170551905: D58659.id183759.diff
Sat, Sep 5, 9:13 AM
F170528653: D58659.id183759.diff
Sat, Sep 5, 6:22 AM
Unknown Object (File)
Fri, Sep 4, 4:45 PM
Unknown Object (File)
Fri, Sep 4, 4:19 PM
Unknown Object (File)
Fri, Sep 4, 3:31 AM
Unknown Object (File)
Thu, Sep 3, 7:30 AM
Unknown Object (File)
Thu, Sep 3, 7:22 AM
Subscribers
None

Details

Summary

The bus_dmamap_load() error paths passed hwq->utrd and req_queue->ucd
to bus_dmamem_free(), but both pointers are only assigned after a
successful load and are still NULL at that point. The freshly
allocated memory was leaked. Free the local buffer instead.

Sponsored by: Samsung Electronics

Diff Detail

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