drm/nouveau/disp: fix oops in destructor with headless cards
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 17 Jun 2014 13:01:48 +0000 (15:01 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 18 Jun 2014 05:49:50 +0000 (15:49 +1000)
commit242a42eadfc17448a0d5b2ffc0cb191c8b51971a
tree2aa266e90e59f86b04d5dd2cb7e1441b2dd18380
parent82c2b5ed6f2760caaa7871f018166fadd849d2d2
drm/nouveau/disp: fix oops in destructor with headless cards

If init doesn't run then disp->outp might not be initialized, resulting
in an oops.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/base.c