drm/tegra: Make CRTC upcasting safer
authorThierry Reding <treding@nvidia.com>
Fri, 8 Nov 2013 11:30:37 +0000 (12:30 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 3 Dec 2013 09:04:15 +0000 (10:04 +0100)
commit37826519c4dca037bda5d008b4d687c2e6f8d405
treea3906601434c9cad929cf37ab6545d86e393c0f2
parent43dd5554fc4e0aa3c29df24aa9dbc7a610fb9e36
drm/tegra: Make CRTC upcasting safer

When upcasting a NULL CRTC object, propagate the NULL pointer instead of
some invalid pointer. This allows subsequent code to check that the cast
object is valid.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.h