summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-08 02:47:31 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-14 10:21:05 -0700
commit6d1f1ec9174c27b0dc9d5b4ea0cc05c9033ac7ef (patch)
tree9cd56a0804a44b67e78dcdad7afe686fea699f68 /rust/kernel/alloc/kvec/errors.rs
parentac2d32a19f9e457e2baa5166bec3da825abc5083 (diff)
Input: da7280 - fix input device parent assignment
Assigning the I2C bus controller (client->dev.parent) instead of the I2C client (&client->dev) as the parent device after devm_input_allocate_device() causes input_register_device() to attach the devm unregistration action to the parent controller device rather than the client device. This leaves the input device registered on driver unbind, leading to use-after-free. devm_input_allocate_device() already sets input_dev->dev.parent to &client->dev. Drop the redundant and erroneous assignment. Fixes: cd3f609823a5 ("Input: new da7280 haptic driver") Assisted-by: LLM Link: https://patch.msgid.link/20261008094736.918137-1-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions