]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: udc: Avoid tasklet passing a global
authorKees Cook <keescook@chromium.org>
Mon, 13 Jul 2020 22:01:33 +0000 (15:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:42 +0000 (16:43 +0100)
commit24c965cdaf1e54a98dc0bb1bed33fc4d06185e84
tree3811ead87b00291e82f61bceb5c97cf557107f5b
parent2e29013b7615be701dfd8c9880b1b4669aaa7503
usb: gadget: udc: Avoid tasklet passing a global

[ Upstream commit b324bd5c8f729818d766d99c5fe3a690ec159e2c ]

There's no reason for the tasklet callback to set an argument since it
always uses a global. Instead, use the global directly, in preparation
for converting the tasklet subsystem to modern callback conventions.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Stable-dep-of: 1fdeb8b9f29d ("wifi: iwl3945: Add missing check for create_singlethread_workqueue")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/udc/snps_udc_core.c