[PATCH] drm/mediatek: fix race condition for HDMI jack status reporting
CK Hu
ck.hu at mediatek.com
Fri Feb 14 08:34:03 UTC 2020
Hi, Tzung-Bi:
On Fri, 2020-02-14 at 15:35 +0800, Tzung-Bi Shih wrote:
> On Fri, Feb 14, 2020 at 3:07 PM CK Hu <ck.hu at mediatek.com> wrote:
> > I think sound driver could be removed for some reason, and fn should be
> > set to NULL before sound driver removed. In this case, codec_dev != NULL
> > and fn == NULL.
>
> No..if you see sound/soc/codecs/hdmi-codec.c, plugged_cb is statically
> allocated.
It looks like that even though sound driver is removed, hdmi driver
would still callback to sound core. This is so weird. After sound driver
is removed, hdmi driver would callback with codec_dev which is invalid.
I think this may cause some problem.
Regards,
CK
More information about the dri-devel
mailing list