diff options
author | Thierry Reding <treding@nvidia.com> | 2016-02-24 18:34:43 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-02-25 12:20:59 +1000 |
commit | 870571a5698b2e9d0f4d2e5c6245967b582aab45 (patch) | |
tree | 07007eaad18c24e2edaa7cb2396fb6561125d8f0 /drivers/gpu/drm/nouveau/nouveau_platform.c | |
parent | 398cb0c93b18b625703db30d874351e6d4cc645a (diff) | |
download | linux-870571a5698b2e9d0f4d2e5c6245967b582aab45.tar.bz2 |
drm/nouveau: platform: Fix deferred probe
The error cleanup paths aren't quite correct and will crash upon
deferred probe.
Cc: stable@vger.kernel.org # v4.3+
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_platform.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 8a70cec59bcd..2dfe58af12e4 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c @@ -24,7 +24,7 @@ static int nouveau_platform_probe(struct platform_device *pdev) { const struct nvkm_device_tegra_func *func; - struct nvkm_device *device; + struct nvkm_device *device = NULL; struct drm_device *drm; int ret; |