]> 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)
commit11a5bb2c1b1c7b48534b26a2fee3a9f28f876cc4
tree5d24d391d31323f20b1c90751ca639ce7dfe5011
parent5dbdc6358b9b593e258d391133609c41ba30ada9
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