Skip to content
Commit 161d6b80 authored by Markus Elfring's avatar Markus Elfring Committed by Greg Kroah-Hartman
Browse files

firmware: tegra: bpmp: Return directly after a failed kzalloc() in get_filename()

[ Upstream commit 1315848f

 ]

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8af60bb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment