drm/tegra: hub: Fix dereference before check
authorThierry Reding <treding@nvidia.com>
Mon, 11 Feb 2019 10:51:20 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 May 2019 07:20:18 +0000 (09:20 +0200)
commite0c34051669ce347fc973224a97b9b7432d5a87f
tree6c0aeba4d65540d3f617f373a43366a2f082b4b5
parentabd76731f899e4f62bc4809133d0f8e68e18c677
drm/tegra: hub: Fix dereference before check

[ Upstream commit 7cf77b273a8fc51e7de622fa6691abd4436a9a6b ]

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
drivers/gpu/drm/tegra/hub.c