]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos/hdmi: Fix unsafe list iteration
authorMaciej Purski <m.purski@samsung.com>
Tue, 5 Sep 2017 12:23:02 +0000 (14:23 +0200)
committerInki Dae <inki.dae@samsung.com>
Wed, 20 Sep 2017 03:05:23 +0000 (12:05 +0900)
commit04fc52fb222d35e1f7a0d5d85b19a676ea1e10e8
tree66297c930d1db09cf60cbf3373f61e7a6fa1919b
parent9ac30ef6d8ec3533d0feec53e268c4fa32ea700c
drm/exynos/hdmi: Fix unsafe list iteration

Function hdmi_mode_fixup() used bare list_for_each entry, which was
unsafe and caused memory corruption detected by kasan.
It now uses drm_for_each_connector_iter macro, which is now recommended
by the documentation and safe.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c