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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:56:00 +0000 (08:56 +0200)
commit5f0e9912e82c4fd33232b371954ee58529be8bca
tree3a58244a23c1e2f30af7aa81cbe3a75c58c4a6b3
parentd097790cec561d32f3dd973629c37774f2412669
drm/nouveau: fix oops in client init failure path

[ Upstream commit a43b16dda2d7485f5c5aed075c1dc9785e339515 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_drm.c