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)
Sat, Oct 10, 12:28 AM
Unknown Object (File)
Wed, Oct 7, 8:22 AM
Unknown Object (File)
Wed, Oct 7, 4:55 AM
Unknown Object (File)
Tue, Oct 6, 9:57 PM
Unknown Object (File)
Mon, Oct 5, 4:05 AM
Unknown Object (File)
Mon, Sep 28, 2:57 AM
Unknown Object (File)
Sat, Sep 26, 3:52 PM
Unknown Object (File)
Tue, Sep 22, 9:45 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