diff options
author | Yogesh <ybhosale@nvidia.com> | 2015-07-31 00:02:11 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-08-12 18:29:03 -0400 |
commit | 77e608d528b85d9b63bef90606afbcd8504e16d1 (patch) | |
tree | 7c19b6260dbb014e07f16818b498ccfc17397580 /drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | |
parent | 9cf28bc529684d58f4b61a7637f16879098cbcc4 (diff) |
gpu: nvgpu: Check for valid memory pointers
1. Before destroying the allocator for PMU dmem check if it was already
initialized. It is only initialized through certain paths like PMU ISRs.
So while testing the nvgpu module using nvgpu_submit_twod test I found
that it was never initialized.
2. Inside gk20a_init_gr_setup_sw, cleanup part calls for de-allocating
the already allocated chunk of memory. Whereas, cleanup also gets called
when memory allocation inside the same function fails. In such cases,
we should have a non-null check else we attempt to free a non-allocated
memory and kernel panics.
Bug 1476801
Change-Id: Ia2f0599ac0c35d58709acd149033e114b898b426
Signed-off-by: Yogesh Bhosale <ybhosale@nvidia.com>
Reviewed-on: http://git-master/r/777118
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
0 files changed, 0 insertions, 0 deletions