diff options
author | Dmitry Torokhov <[email protected]> | 2022-02-25 17:18:58 -0800 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2022-03-01 15:31:17 +0100 |
commit | cc71d37fd1f11e0495b1cf580909ebea37eaa886 (patch) | |
tree | 3947d96fc7680fdd5df7ce11c474ee59bcd9db39 /lib/test_overflow.c | |
parent | fc3ef2e3297b3c0e2006b5d7b3d66965e3392036 (diff) |
HID: vivaldi: fix sysfs attributes leak
The driver creates the top row map sysfs attribute in input_configured()
method; unfortunately we do not have a callback that is executed when HID
interface is unbound, thus we are leaking these sysfs attributes, for
example when device is disconnected.
To fix it let's switch to managed version of adding sysfs attributes which
will ensure that they are destroyed when the driver is unbound.
Fixes: 14c9c014babe ("HID: add vivaldi HID driver")
Signed-off-by: Dmitry Torokhov <[email protected]>
Tested-by: Stephen Boyd <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions