mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: gp106: Free pmu_sig if init PMU fails
If gk20a_init_pmu() fails, go to the error path that frees pmu_sig. Change-Id: I2f6fcb86570aba54ab45aec14ee6f341e3faebd5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1249971 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Seema Khowala <seemaj@nvidia.com>
This commit is contained in:
committed by
Deepak Nibade
parent
3491b6c321
commit
d1c722b194
@@ -170,7 +170,7 @@ static int pmu_ucode_details(struct gk20a *g, struct flcn_ucode_img_v1 *p_img)
|
||||
err = gk20a_init_pmu(pmu);
|
||||
if (err) {
|
||||
gp106_dbg_pmu("failed to set function pointers\n");
|
||||
goto release_desc;
|
||||
goto release_sig;
|
||||
}
|
||||
|
||||
lsf_desc = kzalloc(sizeof(struct lsf_ucode_desc_v1), GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user