drm/nouveau/secboot: fix NULL pointer dereference
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 10 Mar 2017 08:16:48 +0000 (17:16 +0900)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Mar 2017 02:06:58 +0000 (12:06 +1000)
commitb7d6c8db498cdbbd0004970d02c86210ce3a6cbc
treecc8af2a8e4763159e66f89518f8ef7f18056467c
parentaa7fc0ca759eb25eea6dc0fee4373e5883a17498
drm/nouveau/secboot: fix NULL pointer dereference

The msgqueue pointer validity should be checked by its owner, not by the
msgqueue code itself to avoid this situation.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/sec2/base.c
drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c