]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: optee: fix memory leak on driver removal
authorClément Le Goffic <clement.legoffic@foss.st.com>
Tue, 15 Jul 2025 14:07:13 +0000 (16:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:06 +0000 (16:23 +0200)
commit28dbbaf9ccfaf7bcbcbc43fe9609359bd883fb87
tree7496c10a0531230a53087254f0b4863ea570fcd9
parent03f967f944374376d4c836ff9eee6c32af8a509f
rtc: optee: fix memory leak on driver removal

[ Upstream commit a531350d2fe58f7fc4516e555f22391dee94efd9 ]

Fix a memory leak in case of driver removal.
Free the shared memory used for arguments exchanges between kernel and
OP-TEE RTC PTA.

Fixes: 81c2f059ab90 ("rtc: optee: add RTC driver for OP-TEE RTC PTA")
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Link: https://lore.kernel.org/r/20250715-upstream-optee-rtc-v1-1-e0fdf8aae545@foss.st.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-optee.c