diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2014-11-10 03:03:54 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:10 -0400 |
commit | ce32b25751c704050f4992c8e33b015c909fc808 (patch) | |
tree | 1250128861f5bdf07a22915375fbaef3102cf31b /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | ff1b2fc1e84fbac147e144d3c8d80104b7eca5e9 (diff) |
gpu: nvgpu: Add NULL pointer check to debug code
nvgpu exposes debug dump functionality. Currently this function
misses NULL pointer checks and therefore in cases where the driver
is compiled but the device is disabled, the driver crashes kernel.
This patch adds the missing NULL pointer check.
Change-Id: I32acb5cad62b2a29603d6439a5c7e45e016235dd
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/599370
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
0 files changed, 0 insertions, 0 deletions