aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorVicki Pfau <[email protected]>2025-02-27 23:41:33 +0000
committerJiri Kosina <[email protected]>2025-03-04 20:46:12 +0000
commite53fc232a65f7488ab75d03a5b95f06aaada7262 (patch)
treee01b7d3daeb68f77fe9d9fb60474b2b13538e372 /net/switchdev/switchdev.c
parentHID: debug: Fix spelling mistake "Messanger" -> "Messenger" (diff)
downloadkernel-e53fc232a65f7488ab75d03a5b95f06aaada7262.tar.gz
kernel-e53fc232a65f7488ab75d03a5b95f06aaada7262.zip
HID: hid-steam: Fix use-after-free when detaching device
When a hid-steam device is removed it must clean up the client_hdev used for intercepting hidraw access. This can lead to scheduling deferred work to reattach the input device. Though the cleanup cancels the deferred work, this was done before the client_hdev itself is cleaned up, so it gets rescheduled. This patch fixes the ordering to make sure the deferred work is properly canceled. Reported-by: [email protected] Fixes: 79504249d7e2 ("HID: hid-steam: Move hidraw input (un)registering to work") Signed-off-by: Vicki Pfau <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions