OSDN Git Service

drm/nouveau: fix oops in client init failure path
authorBen Skeggs <bskeggs@redhat.com>
Tue, 28 Aug 2018 04:10:34 +0000 (14:10 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 6 Sep 2018 20:54:27 +0000 (06:54 +1000)
commita43b16dda2d7485f5c5aed075c1dc9785e339515
tree75292f26102d904eeead2002fabec4ba91785e29
parentd5986a1c4dcd00cb8b9eee4a56ee93868222a9a2
drm/nouveau: fix oops in client init failure path

The NV_ERROR macro requires drm->client to be initialised, which it may not
be at this stage of the init process.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c