diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-05-25 06:55:20 -0400 |
---|---|---|
committer | Tejal Kudav <tkudav@nvidia.com> | 2018-06-14 09:44:06 -0400 |
commit | 2318e66a59e4e25240513fe7d267fc63b7353a15 (patch) | |
tree | 719b58c12a9ad7e2efa0e63628924c1e92acc12a /drivers/gpu/nvgpu/ctrl/ctrlperf.h | |
parent | f9da1781f67b1c67f4c0825dae38dfc13e72bbc1 (diff) |
gpu: nvgpu: gr: remove only created sysfs nodes
Sysfs nodes for GR stats are created on GR init. If nvgpu
module is removed without any ops, then it tries to remove
sysfs nodes which do not exist resulting in kernel panic.
Fix this issue by removing sysfs nodes only if ecc counters
are initialized.
Bug 1987855
Change-Id: I3f967ee92ec02ad19ffbd9bfa8bace5bfd229dd2
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1730536
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/ctrl/ctrlperf.h')
0 files changed, 0 insertions, 0 deletions