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
F170030688: D58659.id183759.diff
Thu, Sep 3, 7:30 AM
F170028710: D58659.id183422.diff
Thu, Sep 3, 7:22 AM
Unknown Object (File)
Tue, Sep 1, 11:36 PM
Unknown Object (File)
Tue, Sep 1, 11:27 PM
Unknown Object (File)
Tue, Sep 1, 11:02 PM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 75378
Build 72261: arc lint + arc unit