]> git.baikalelectronics.ru Git - kernel.git/commit
drm/udl: Sync pending URBs at suspend / disconnect
authorTakashi Iwai <tiwai@suse.de>
Thu, 4 Aug 2022 07:58:24 +0000 (09:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Aug 2022 08:06:58 +0000 (10:06 +0200)
commita101bafde982adde2b279eaa3597b8c84397f525
tree5d24d391d31323f20b1c90751ca639ce7dfe5011
parent045b5da1f0631992ab30465c8ed3b2f81edd6f5e
drm/udl: Sync pending URBs at suspend / disconnect

We need to wait for finishing to process the all URBs after disabling
the pipe; otherwise pending URBs may stray at suspend/resume, leading
to a possible memory corruption in a worst case.

Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220804075826.27036-3-tiwai@suse.de
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_main.c
drivers/gpu/drm/udl/udl_modeset.c