aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/find_bit.c
diff options
context:
space:
mode:
authorPavel Skripkin <[email protected]>2021-12-31 04:57:46 +0000
committerDmitry Torokhov <[email protected]>2021-12-31 05:04:04 +0000
commit9f3ccdc3f6ef10084ceb3a47df0961bec6196fd0 (patch)
tree5547c3618de935c018b3bf30d1f502eba14d650c /tools/lib/find_bit.c
parentInput: elants_i2c - do not check Remark ID on eKTH3900/eKTH5312 (diff)
downloadkernel-9f3ccdc3f6ef10084ceb3a47df0961bec6196fd0.tar.gz
kernel-9f3ccdc3f6ef10084ceb3a47df0961bec6196fd0.zip
Input: appletouch - initialize work before device registration
Syzbot has reported warning in __flush_work(). This warning is caused by work->func == NULL, which means missing work initialization. This may happen, since input_dev->close() calls cancel_work_sync(&dev->work), but dev->work initalization happens _after_ input_register_device() call. So this patch moves dev->work initialization before registering input device Fixes: 5a6eb676d3bc ("Input: appletouch - improve powersaving for Geyser3 devices") Reported-and-tested-by: [email protected] Signed-off-by: Pavel Skripkin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions