Skip to content
Commit 1315848f authored by Markus Elfring's avatar Markus Elfring Committed by Thierry Reding
Browse files

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



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>
parent 6613476e
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