]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Thu, 17 Oct 2024 13:11:12 +0000 (15:11 +0200)
commit39c22ede77394b36b02364f17d354d0f88e7c19c
tree32e281fa9a43d3565b6cea37de693b5ac9f0df3a
parentb80aacfea6e8d6ed6e430aa13922d6ccf044415a
USB: appledisplay: close race between probe and completion handler

commit 8265d06b7794493d82c5c21a12d7ba43eccc30cb upstream.

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