]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/msm/adreno/a5xx_debugfs: fix potential NULL pointer dereference
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 2 Feb 2018 12:32:23 +0000 (06:32 -0600)
committerRob Clark <robdclark@gmail.com>
Mon, 19 Mar 2018 10:33:34 +0000 (06:33 -0400)
commit5abc7dd7b5a0f51a6c7d9cb3ce72b910ba3cef7b
tree82d1c7f88289c6159ce282679c37c50d4ecfcf0c
parentfb48989edb628342af0fad478174ae30b2e1e23a
drm/msm/adreno/a5xx_debugfs: fix potential NULL pointer dereference

_minor_ is being dereferenced before it is null checked, hence there
is a potential null pointer dereference. Fix this by moving the pointer
dereference after _minor_ has been null checked.

Fixes: 024ad8df763f ("drm/msm: add a5xx specific debugfs")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a5xx_debugfs.c