]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/platform: fix probe error path
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 20 Mar 2015 10:41:05 +0000 (19:41 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:51 +0000 (17:00 +1000)
commit9a4889f452f47feeb91a2ed7e8bb2b0d54ae303f
treeadb06d561022b9ac0f1026c02649f02f46c13b66
parenta843e3c3eb2aa99c3fc59ca77eaf454b7dbf8ab6
drm/nouveau/platform: fix probe error path

A "return 0" found its way in the middle of the error path of
nouveau_platform_probe(), remove it as it will make the kernel crash if
we try to unload the module afterwards.

While we are at it, also remove the IOMMU domain if it has been created,
as we should.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_platform.c