drm/tegra: vic: Handle tegra_drm_alloc() failure
authorThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 08:56:11 +0000 (09:56 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:07 +0000 (14:07 +0100)
commitd53830eec05561a0e9918fff8df3861bde74d159
tree3bbe2ad75c13201a58091b00a969b34513f8f187
parent4abfc0e3a5460499ce1062cf94089490aade7ca4
drm/tegra: vic: Handle tegra_drm_alloc() failure

This function can return one of several errors in an ERR_PTR()-encoded
pointer, so make sure to propogate those on failure.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/vic.c