linux/drivers/firmware/tegra
Markus Elfring 5dc5f8c705 firmware: tegra: bpmp: Return directly after a failed kzalloc() in get_filename()
[ Upstream commit 1315848f1f ]

The kfree() function was called in one case by
the get_filename() function during error handling
even if the passed variable contained a null pointer.
This issue was detected by using the Coccinelle software.

Thus return directly after a call of the function “kzalloc” failed
at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:07:31 +02:00
..
bpmp-debugfs.c firmware: tegra: bpmp: Return directly after a failed kzalloc() in get_filename() 2024-04-13 13:07:31 +02:00
bpmp-private.h firmware: tegra: bpmp: Fix Tegra234-only builds 2021-06-11 13:31:51 +02:00
bpmp-tegra186.c firmware: tegra: bpmp: Add support for DRAM MRQ GSCs 2023-06-09 17:17:23 +02:00
bpmp-tegra210.c firmware: tegra: Remove surplus dev_err() when using platform_get_irq_byname() 2022-11-17 23:52:39 +01:00
bpmp.c firmware: tegra: Add suspend hook and reset BPMP IPC early on resume 2023-11-20 11:59:16 +01:00
ivc.c firmware: tegra: bpmp: Use iosys-map helpers 2022-10-24 15:18:11 +02:00
Kconfig tegra: mark BPMP driver as little-endian only 2022-11-23 14:21:23 +01:00
Makefile firmware: tegra: bpmp: Fix Tegra234-only builds 2021-06-11 13:31:51 +02:00