drm/msm: reject submit ioctl if no gpu
authorRob Clark <robdclark@gmail.com>
Wed, 3 Feb 2016 18:12:31 +0000 (13:12 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 3 Mar 2016 16:55:30 +0000 (11:55 -0500)
commitc01a958eca6e7f23bc49058feb66942ebcacb277
tree28061c5059ccf8c13d4599f0599cca53841e5156
parent1e2c8e7a2f3f5b339a7bd972ad09c66ea52acea8
drm/msm: reject submit ioctl if no gpu

Existing userspace wouldn't get this far, since getparam ioctl would
have failed and it would have bailed out creating a screen/context.

But all the same, we shouldn't let evil or confused userspace cause a
null ptr deref.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_submit.c