]> Gentwo Git Trees - linux/.git/commit
USB: appledisplay: close race between probe and completion handler
authorOliver Neukum <oneukum@suse.com>
Thu, 12 Sep 2024 12:32:59 +0000 (14:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Sep 2024 05:54:23 +0000 (07:54 +0200)
commit8265d06b7794493d82c5c21a12d7ba43eccc30cb
tree6b504e125429b64244ce245964162369954c6a55
parentb41c1fa155ba56d125885b0191aabaf3c508d0a3
USB: appledisplay: close race between probe and completion handler

There is a small window during probing when IO is running
but the backlight is not registered. Processing events
during that time will crash. The completion handler
needs to check for a backlight before scheduling work.

The bug is as old as the driver.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
CC: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240912123317.1026049-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/appledisplay.c