drm/nouveau/tegra: Fix error handling
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 31 Oct 2016 06:35:50 +0000 (07:35 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:40 +0000 (14:04 +1000)
commit91cf301f6ffb854a03c55df39ab04298f12cb000
tree45180a2e84f94816b4faafaff5244ea6e2377d7a
parent770b06e8cbdaae268286d627883c01f9ff7682f4
drm/nouveau/tegra: Fix error handling

'iommu_domain_alloc()' returns NULL in case of error, not an error pointer.
So test it accordingly.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c