mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: fix memory leak in regops ioctl
Bug 200003921 Change-Id: Iebaca62793201ae86ce5f2cf4af3fc870a2aa3a6 Signed-off-by: Kevin Huang <kevinh@nvidia.com> Reviewed-on: http://git-master/r/408415 (cherry picked from commit 7d8fd07a26e33ba53a71dae475dc1074d52767a8) Signed-off-by: Hridya <hvalsaraju@nvidia.com> Reviewed-on: http://git-master/r/409832 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alka Mohite <amohite@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Tested-by: Deepak Nibade <dnibade@nvidia.com>
This commit is contained in:
committed by
Dan Willemsen
parent
145a9edd3f
commit
09f1bebcd5
@@ -519,7 +519,7 @@ static int nvhost_ioctl_channel_reg_ops(struct dbg_session_gk20a *dbg_s,
|
|||||||
err = -EFAULT;
|
err = -EFAULT;
|
||||||
goto clean_up;
|
goto clean_up;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
clean_up:
|
clean_up:
|
||||||
kfree(ops);
|
kfree(ops);
|
||||||
return err;
|
return err;
|
||||||
|
|||||||
Reference in New Issue
Block a user