drm/exynos: check for null pointers in error handling
authorPaul Taysom <taysom@chromium.org>
Fri, 9 May 2014 06:06:28 +0000 (15:06 +0900)
committerInki Dae <daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:07 +0000 (02:07 +0900)
commitb21a3bf4418899bcb74cbef2e4d3bb976a6f1157
tree4afc8282f293adbc1af97f5dee6c80d8c0f9cece
parent724fd140d568f472120b550ec10343ee022a307f
drm/exynos: check for null pointers in error handling

Smatch error from arm build: drivers/gpu/drm/exynos/
exynos_hdmi.c:2374 hdmi_probe() error: potential NULL
dereference 'hdata->hdmiphy_port'.

Added check for hdata->hdmiphy_port that it is not NULL.

Signed-off-by: Paul Taysom <taysom@chromium.org>
Signed-off-by: Rahul Sharma <Rahul.Sharma@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c