Skip to content
Commit e3c2d2d1 authored by Danny Kaehn's avatar Danny Kaehn Committed by Jiri Kosina
Browse files

hid: cp2112: Fix duplicate workqueue initialization



Previously the cp2112 driver called INIT_DELAYED_WORK within
cp2112_gpio_irq_startup, resulting in duplicate initilizations of the
workqueue on subsequent IRQ startups following an initial request. This
resulted in a warning in set_work_data in workqueue.c, as well as a rare
NULL dereference within process_one_work in workqueue.c.

Initialize the workqueue within _probe instead.

Fixes: 13de9cca ("HID: cp2112: add IRQ chip handling")
Signed-off-by: default avatarDanny Kaehn <danny.kaehn@plexus.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 29aa98d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment