Re: [PATCH] fbdev: omapfb: panel-dsi-cm: initialize lock before registering display
From: Helge Deller
Date: Tue Aug 18 2026 - 12:52:58 EST
On 8/18/26 15:53, Runyu Xiao wrote:
dsicm_probe() registers the display before initializing ddata->lock.applied.
Once omapdss_register_display() publishes the display, another consumer
can reach a dsicm callback that takes this mutex while it is still
uninitialized.
Initialize the mutex before registering the display so the published
callbacks always see a valid lock.
Fixes: f76ee892a99e ("omapfb: copy omapdss & displays for omapfb")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Runyu Xiao <runyu.xiao@xxxxxxxxxx>
---
drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Thanks!
Helge