Skip to content
Unverified Commit d0375f68 authored by Jai Luthra's avatar Jai Luthra Committed by Robert Foss
Browse files

drm: bridge: it66121: Fix invalid connector dereference

Fix the NULL pointer dereference when no monitor is connected, and the
sound card is opened from userspace.

Instead return an empty buffer (of zeroes) as the EDID information to
the sound framework if there is no connector attached.

Fixes: e0fd83db

 ("drm: bridge: it66121: Add audio support")
Reported-by: default avatarNishanth Menon <nm@ti.com>
Closes: https://lore.kernel.org/all/20230825105849.crhon42qndxqif4i@gondola/
Reviewed-by: default avatarHelen Koike <helen.koike@collabora.com>
Signed-off-by: default avatarJai Luthra <j-luthra@ti.com>
Tested-by: default avatarNishanth Menon <nm@ti.com>
Reviewed-by: default avatarAradhya Bhatia <a-bhatia1@ti.com>
Signed-off-by: default avatarRobert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230901-it66121_edid-v2-1-aa59605336b9@ti.com
parent 29ff3b7e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment