]> git.baikalelectronics.ru Git - kernel.git/commit
drm/udl: Don't re-initialize stuff at retrying the URB list allocation
authorTakashi Iwai <tiwai@suse.de>
Thu, 8 Sep 2022 09:51:14 +0000 (11:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 10 Sep 2022 19:45:52 +0000 (21:45 +0200)
commitc286f33ee4ab59621951a0806cf7d3114ccbc451
tree0eb0814020ec6fe289bd50d545a289c62992f98a
parent244fe31b61682fbe292c44aaca1240ff81bf3c50
drm/udl: Don't re-initialize stuff at retrying the URB list allocation

udl_alloc_urb_list() retires the allocation if there is no enough room
left, and it reinitializes the stuff unnecessarily such as the linked
list head and the waitqueue, which could be harmful.  Those should be
outside the retry loop.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220908095115.23396-12-tiwai@suse.de
drivers/gpu/drm/udl/udl_main.c