Page MenuHomeFreeBSD

ufshci: free the correct address when DMA load fails
Needs ReviewPublic

Authored by jaeyoon on Wed, Aug 5, 8:02 AM.

Details

Reviewers
imp
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