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
Unknown Object (File)
Tue, Sep 15, 6:36 PM
Unknown Object (File)
Sat, Sep 12, 9:50 PM
Unknown Object (File)
Fri, Sep 11, 1:52 AM
Unknown Object (File)
Tue, Sep 8, 10:19 PM
Unknown Object (File)
Tue, Sep 8, 10:06 PM
Unknown Object (File)
Mon, Sep 7, 10:44 PM
Unknown Object (File)
Mon, Sep 7, 10:30 PM
Unknown Object (File)
Mon, Sep 7, 9:07 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