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>
This commit is contained in:
Alexandre Courbot 2017-03-10 17:16:48 +09:00 • committed by Dave Airlie
commit b7d6c8db49
3 changed files with 15 additions and 3 deletions