diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-05-11 05:28:51 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-12 09:24:27 -0400 |
commit | d0955cad82c92699965f76c95c87150fbed70d3a (patch) | |
tree | 7dd4181fc659d1620e4ce2ac0ac914f55174f6e1 /include/trace/events/gk20a.h | |
parent | 677edcd6ec16298722b1402d92bd493e68bc0299 (diff) |
gpu: nvgpu: fix resource leak in error path
In nvgpu_request_firmware(), if fw->data is NULL, we jump
to label "err" and leak the storage pointed by linux_fw
Fix this by releasing firmware in error path if
fw->data is NULL
Coverity id : 2513066
Bug 200291879
Change-Id: Ieb5e22137cebb4cd02415b805941969b95a38668
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1479884
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include/trace/events/gk20a.h')
0 files changed, 0 insertions, 0 deletions