summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/ctrl/ctrlpmgr.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-01-04 15:51:38 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-06 12:13:59 -0500
commite3e2786567c9066ccf612b7c421ad0f52ebb82ba (patch)
tree01ab7672864b8e4fab330cb7ec8b846f85a4f7a5 /drivers/gpu/nvgpu/ctrl/ctrlpmgr.h
parent8f2f5ba8655ffb8b94471553c144d55eb3624a8f (diff)
gpu: nvgpu: Do not access NULL pointer dev
In gk20a_busy() we check if dev is NULL and return -ENODEV if so. But before that we've already dereferenced dev by passing it to get_gk20a(). Defer call to get_gk20a() until after the NULL check. Bug 200192125 Change-Id: I943a9e96d13ff8cb4333fe20a941c8e95d159a66 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1280349 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/ctrl/ctrlpmgr.h')
0 files changed, 0 insertions, 0 deletions