Files
linux-nvgpu/drivers/gpu
Deepak Nibade b6b71bd4a8 gpu: nvgpu: fix cleanup path in css_gr_create_client_data()
In css_gr_create_client_data(), we call css_gr_free_client_data() in case
cur->perfmon_start is zero

css_gr_free_client_data() deletes the node from list, and performs some
cleanup if cur->perfmon_start is non-zero

Hence it is incorrect to call css_gr_free_client_data() in clean up path
since node is not added to the list, and cur->perfmon_start is zero anyways

Fix the cleanup path, and remove call to css_gr_free_client_data()

Jira NVGPU-397

Change-Id: I9cb1abf4d6a02716156c9ea2d4a7963e1c92a531
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1606977
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>
2017-11-29 11:54:14 -08:00
..
2017-10-29 11:00:55 -07:00