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: NThierry Reding <treding@nvidia.com>
Showing
想要评论请 注册 或 登录