drm/tegra: hub: Fix dereference before check
authorThierry Reding <treding@nvidia.com>
Mon, 11 Feb 2019 10:51:20 +0000 (11:51 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 22 Mar 2019 13:08:54 +0000 (14:08 +0100)
commit7cf77b273a8fc51e7de622fa6691abd4436a9a6b
tree3abd74076f37095704f4ad0fe1112a2ad0dbd783
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
drm/tegra: hub: Fix dereference before check

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hub.c