summaryrefslogtreecommitdiff
path: root/include/android_bootloader_message.h
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-07-13 21:32:54 +0800
committerPeng Fan <[email protected]>2026-07-29 11:15:55 +0800
commitb95ce3f0945cac05c09a1837ea2401df78d766d4 (patch)
tree146b520b0ee5bb494da102ccc6c32b10f08111fe /include/android_bootloader_message.h
parent67d06fe102712dc07e05bbdf893fc48ba73c86a6 (diff)
mmc: sdhci: fix align_buffer memory leak on re-initialization
sdhci_init() allocates a 512KB aligned bounce buffer for controllers with SDHCI_QUIRK_32BIT_DMA_ADDR. In the non-DM code path, sdhci_init() is registered as ops->init and called on every mmc_init(). Each call allocates a new buffer without checking or freeing the previous one, leaking 512KB per re-initialization. Fix by guarding the allocation with !host->align_buffer so it only allocates on the first call. Reviewed-by: Tanmay Kathpalia <[email protected]> Signed-off-by: Tanmay Kathpalia <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include/android_bootloader_message.h')
0 files changed, 0 insertions, 0 deletions