diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-06-16 23:11:29 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-29 18:34:18 +0100 |
| commit | 5504e50ffbcf97b3b6ed3740532497922c96a1f1 (patch) | |
| tree | 5417a6b73fb0e21e09722314c881f6921a25fd3d /tools/perf/scripts/python/stackcollapse.py | |
| parent | cb8c374a632b8bfeb8aa2a4977eeeb293f3566a5 (diff) | |
spi: qpic-snand: free OOB buffer with ECC context
qcom_spi_ecc_init_ctx_pipelined() allocates qspi->oob_buf as part of the
pipelined ECC context setup. The buffer is then used by the raw and ECC
page I/O paths through the NAND ECC context.
The matching cleanup callback only frees the qpic_ecc structure, and the
init error path also skips the OOB buffer after it has been allocated.
Free qspi->oob_buf on both paths and clear the pointer so the ECC context
teardown owns all resources allocated during init.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260616151129.76060-1-pengpeng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
