Patch "HID: hid-steam: Don't use cancel_delayed_work_sync in IRQ context" has been added to the 6.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    HID: hid-steam: Don't use cancel_delayed_work_sync in IRQ context

to the 6.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     hid-hid-steam-don-t-use-cancel_delayed_work_sync-in-.patch
and it can be found in the queue-6.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6e0740fc0b19abe980bab72ce82e78253694cf0a
Author: Vicki Pfau <vi@xxxxxxxxxxx>
Date:   Tue Feb 4 19:55:29 2025 -0800

    HID: hid-steam: Don't use cancel_delayed_work_sync in IRQ context
    
    [ Upstream commit b051ffa2aeb2a60e092387b6fb2af1ad42f51a3c ]
    
    Lockdep reported that, as steam_do_deck_input_event is called from
    steam_raw_event inside of an IRQ context, it can lead to issues if that IRQ
    occurs while the work to be cancelled is running. By using cancel_delayed_work,
    this issue can be avoided. The exact ordering of the work and the event
    processing is not super important, so this is safe.
    
    Fixes: cd438e57dd05 ("HID: hid-steam: Add gamepad-only mode switched to by holding options")
    Signed-off-by: Vicki Pfau <vi@xxxxxxxxxxx>
    Signed-off-by: Jiri Kosina <jkosina@xxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hid/hid-steam.c b/drivers/hid/hid-steam.c
index 6439913372a8a..12a6887cd12c9 100644
--- a/drivers/hid/hid-steam.c
+++ b/drivers/hid/hid-steam.c
@@ -1592,7 +1592,7 @@ static void steam_do_deck_input_event(struct steam_device *steam,
 
 	if (!(b9 & BIT(6)) && steam->did_mode_switch) {
 		steam->did_mode_switch = false;
-		cancel_delayed_work_sync(&steam->mode_switch);
+		cancel_delayed_work(&steam->mode_switch);
 	} else if (!steam->client_opened && (b9 & BIT(6)) && !steam->did_mode_switch) {
 		steam->did_mode_switch = true;
 		schedule_delayed_work(&steam->mode_switch, 45 * HZ / 100);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux