AngeloGioacchino Del Regno
71d07ebc50
drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf
...
[ Upstream commit 3b8e19a0aa ]
In commit 41ca9caaae
("drm/mediatek: hdmi: Add check for CEA modes only") a check
for CEA modes was added to function mtk_hdmi_bridge_mode_valid()
in order to address possible issues on MT8167;
moreover, with commit c91026a938
("drm/mediatek: hdmi: Add optional limit on maximal HDMI mode clock")
another similar check was introduced.
Unfortunately though, at the time of writing, MT8173 does not provide
any mtk_hdmi_conf structure and this is crashing the kernel with NULL
pointer upon entering mtk_hdmi_bridge_mode_valid(), which happens as
soon as a HDMI cable gets plugged in.
To fix this regression, add a NULL pointer check for hdmi->conf in the
said function, restoring HDMI functionality and avoiding NULL pointer
kernel panics.
Fixes: 41ca9caaae ("drm/mediatek: hdmi: Add check for CEA modes only")
Fixes: c91026a938 ("drm/mediatek: hdmi: Add optional limit on maximal HDMI mode clock")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com >
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2021-12-29 12:28:39 +01:00
..
2021-12-22 09:32:49 +01:00
2021-08-10 20:00:51 +02:00
2021-07-01 11:11:55 +02:00
2021-12-01 09:04:47 +01:00
2021-12-22 09:32:41 +01:00
2021-08-10 20:00:58 +02:00
2021-11-18 19:17:01 +01:00
2021-09-16 10:35:37 +02:00
2021-09-16 14:05:07 +09:00
2021-08-10 20:13:25 +02:00
2021-08-10 20:13:32 +02:00
2021-08-08 20:27:24 +02:00
2021-07-30 14:52:00 +10:00
2021-12-01 09:04:51 +01:00
2021-08-10 20:14:01 +02:00
2021-12-22 09:32:42 +01:00
2021-11-18 19:17:09 +01:00
2021-08-11 15:49:15 +02:00
2021-10-21 11:08:09 +02:00
2021-07-21 11:58:28 +10:00
2021-07-30 14:52:00 +10:00
2021-12-29 12:28:39 +01:00
2021-09-01 11:26:46 -07:00
2021-08-10 20:14:01 +02:00
2021-08-18 20:47:59 +02:00
2021-12-17 10:30:14 +01:00
2021-10-21 11:08:08 +02:00
2021-12-01 09:04:47 +01:00
2021-07-28 16:33:12 +03:00
2021-10-21 11:08:08 +02:00
2021-08-25 15:40:19 +01:00
2021-07-31 20:52:01 +02:00
2021-07-21 11:58:28 +10:00
2021-10-15 15:05:10 +10:00
2021-11-18 19:17:08 +01:00
2021-10-13 07:44:04 +10:00
2021-10-06 11:05:45 +02:00
2021-05-03 19:48:30 +02:00
2021-07-01 08:53:25 +02:00
2021-10-22 11:09:45 +02:00
2021-07-25 11:01:12 +02:00
2021-05-03 19:48:33 +02:00
2021-07-28 16:33:12 +03:00
2021-07-19 15:35:55 +02:00
2021-12-08 09:04:37 +01:00
2021-09-16 18:06:51 +02:00
2021-08-10 20:13:49 +02:00
2021-08-10 20:13:53 +02:00
2021-12-22 09:32:41 +01:00
2021-11-18 19:17:08 +01:00
2021-06-24 15:40:11 +02:00
2021-11-25 09:49:05 +01:00
2021-11-18 19:16:23 +01:00
2021-08-08 20:27:49 +02:00
2021-12-08 09:04:50 +01:00
2021-07-13 13:15:52 +02:00
2021-08-10 20:14:01 +02:00
2021-11-18 19:16:23 +01:00
2021-08-08 20:27:52 +02:00
2021-11-18 19:17:08 +01:00
2021-06-24 15:40:11 +02:00
2021-08-09 02:28:05 +03:00
2021-06-29 15:40:53 +02:00
2021-05-11 14:13:33 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-05 12:08:15 +02:00
2021-04-22 10:46:35 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-07-20 20:13:56 +02:00
2021-05-16 22:01:14 +02:00
2021-07-27 12:48:17 +02:00
2021-08-02 10:19:43 +02:00
2021-06-10 19:14:47 +02:00
2021-07-20 20:14:42 +02:00
2021-03-31 15:42:39 +03:00
2021-04-26 18:19:15 +02:00
2021-08-11 08:47:08 +10:00
2021-04-27 18:43:42 -04:00
2021-04-27 18:43:45 -04:00
2021-08-02 10:19:43 +02:00
2021-07-27 18:58:28 -04:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-10-15 15:03:57 +10:00
2021-05-25 11:42:09 +01:00
2021-12-22 09:32:39 +01:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-06-04 06:13:57 +10:00
2021-08-02 10:19:43 +02:00
2021-08-08 20:26:16 +02:00
2021-11-25 09:48:45 +01:00
2021-08-08 20:26:16 +02:00
2021-08-02 10:19:43 +02:00
2021-06-02 11:07:25 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-05-17 21:19:48 +02:00
2021-08-17 13:56:03 -04:00
2021-08-02 10:19:43 +02:00
2021-08-10 20:14:01 +02:00
2021-07-30 11:55:41 +02:00
2021-08-10 20:14:01 +02:00
2021-05-17 21:19:48 +02:00
2021-05-10 15:46:58 +02:00
2021-07-23 20:17:59 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-07-15 10:54:04 +01:00
2021-11-18 19:16:09 +01:00
2021-07-13 06:38:37 -07:00
2021-05-17 21:19:48 +02:00
2021-11-18 19:17:00 +01:00
2021-08-02 10:19:43 +02:00
2021-11-25 09:49:05 +01:00
2021-08-19 09:02:55 +09:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-08 20:14:08 +02:00
2021-12-14 10:57:14 +01:00
2021-08-10 20:14:01 +02:00
2021-05-10 15:46:58 +02:00
2021-08-02 10:19:43 +02:00
2021-11-21 13:44:12 +01:00
2021-07-05 08:54:44 +02:00