aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2025-05-19 21:20:30 +0000
committerTakashi Iwai <[email protected]>2025-05-19 21:21:29 +0000
commit0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 (patch)
treec1c5011a871cfaf526e871840c197dd688963a66 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parentALSA: hda: hda-intel: add Wildcat Lake support (diff)
downloadkernel-0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1.tar.gz
kernel-0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1.zip
ALSA: usb-audio: Kill timer properly at removal
The USB-audio MIDI code initializes the timer, but in a rare case, the driver might be freed without the disconnect call. This leaves the timer in an active state while the assigned object is released via snd_usbmidi_free(), which ends up with a kernel warning when the debug configuration is enabled, as spotted by fuzzer. For avoiding the problem, put timer_shutdown_sync() at snd_usbmidi_free(), so that the timer can be killed properly. While we're at it, replace the existing timer_delete_sync() at the disconnect callback with timer_shutdown_sync(), too. Reported-by: [email protected] Closes: https://lore.kernel.org/[email protected] Cc: <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions