mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: posix: free also os struct on cleanup
Free the allocated nvgpu_os_posix structure when cleaning up posix os resources as the last step. Change-Id: Ifcc22612ead5dac6e22b8f8b6e4731785a9eabf7 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1916643 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Abdul Salam
parent
362f9a7371
commit
e78d52ad1e
@@ -139,5 +139,8 @@ fail:
|
||||
|
||||
void nvgpu_posix_cleanup(struct gk20a *g)
|
||||
{
|
||||
struct nvgpu_os_posix *p = nvgpu_os_posix_from_gk20a(g);
|
||||
|
||||
nvgpu_kmem_fini(g, 0);
|
||||
free(p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user