drm/nouveau/kms/nv50: add null check before pointer dereference
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 22 May 2017 19:12:37 +0000 (14:12 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 6 Jun 2017 04:04:03 +0000 (14:04 +1000)
commit86276921a17ee3090749c9f38f57dcfb73733bd4
treed2c195892b6a0b8357f19790d972b7add759c447
parent28904eeced2c6cf6d315c675e79e1700ef7507ac
drm/nouveau/kms/nv50: add null check before pointer dereference

Add null check before dereferencing pointer asyc

Addresses-Coverity-ID: 1397932
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c