]> 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>
Fri, 4 Oct 2024 14:29:50 +0000 (16:29 +0200)
commitef08eb1605f5b9928c266ef2314478feb3d36aaa
tree94c387bf7fd192940165761cf3a735bded9e9e00
parent090386dbedbc2f099c44a0136eb8eb8713930072
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