Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: tegra: bpmp: Return directly after a failed kzalloc() in ge…
…t_filename() [ Upstream commit 1315848 ] 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>
- Loading branch information