Page MenuHomeFreeBSD

ufshci: free the correct address when DMA load fails
ClosedPublic

Authored by jaeyoon on Wed, Aug 5, 8:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 27, 7:00 PM
Unknown Object (File)
Thu, Aug 27, 10:09 AM
Unknown Object (File)
Thu, Aug 27, 10:04 AM
Unknown Object (File)
Wed, Aug 26, 12:00 PM
Unknown Object (File)
Wed, Aug 26, 1:31 AM
Unknown Object (File)
Mon, Aug 24, 9:12 PM
Unknown Object (File)
Sun, Aug 23, 10:01 PM
Unknown Object (File)
Fri, Aug 21, 12:22 PM
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