diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-10-24 19:54:44 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-29 14:01:56 -0400 |
commit | b18fa6c4a7867a9c0256ca2619ffa8ee04797820 (patch) | |
tree | 8897d8222e58da7bd6e886b05b75bde91320f32e /include/uapi/linux/nvgpu-t18x.h | |
parent | 3afb2a88d5a93cd5ee3f588025f45b986bed0762 (diff) |
gpu: nvgpu: fix fault in gk20a_comptag_allocator_destroy
In gk20a_comptag_allocator_destroy, allocator->g may not be
initialized. This leads to a NULL pointer dereference when
enabling CONFIG_NVGPU_TRACK_MEM_USAGE.
Use available g parameter instead.
Bug 200352099
JIRA EVLR-1959
Change-Id: I9edda516bb88cced8e7d247261e52ba6594f3b2e
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1586504
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi/linux/nvgpu-t18x.h')
0 files changed, 0 insertions, 0 deletions