]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: dp: Fix NULL pointer dereference due uninitialized connector
authorYakir Yang <ykk@rock-chips.com>
Wed, 8 Jun 2016 14:13:27 +0000 (10:13 -0400)
committerInki Dae <daeinki@gmail.com>
Sun, 19 Jun 2016 05:37:24 +0000 (14:37 +0900)
commit0d2b3c58cf12e99b2ec1d97affb261245aacc6fe
tree7b9b319385df9927141dedf20dd6662927ba600a
parente7ce490697d1fd4bd6cce279aa7062d59aa7a6c4
drm/exynos: dp: Fix NULL pointer dereference due uninitialized connector

Commit 646150355392 ("drm: bridge: analogix/dp: split exynos dp driver to
bridge directory") split the Exynos DP core driver into a core driver and
a bridge driver for the Analogix chip since that is also used by Rockchip.

But the change introduced a regression causing a NULL pointer dereference
when trying to access an uninitialized connector in the driver .get_modes:

Fix this by instead of having a connector struct for both the Exynos and
Analogix drivers, just use the connector initialized in the bridge driver.

Fixes: 646150355392 ("drm: bridge: analogix/dp: split exynos dp driver to bridge directory")
Reported-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Tested-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_dp.c