Commit c80ae491 authored by Pratyush Yadav's avatar Pratyush Yadav Committed by Vignesh Raghavendra
Browse files

spi: spi-cadence-quadspi: Plug the leak of 'read_data'



In cqspi_phy_check_pattern() we allocate the array 'read_data' to read
the PHY pattern from the flash. It is not freed on return, resulting in
a leak of up to a couple kilobytes. Plug the leak.

Fixes: 5ee294ff ("spi: cadence-qspi: Tune PHY to allow running at higher frequencies")
Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 8a5becfa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment