aboutsummaryrefslogtreecommitdiff
path: root/hid-tmff2.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-03-23 22:39:07 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-03-23 22:54:10 +0200
commit62412528ae90b37172675264d7129663a0341ccb (patch)
tree632460b41ca785ca8e4e05eccbc78d15b517aeec /hid-tmff2.c
parentfed8081d45d05ecf2b557515e17a5005b90a7e96 (diff)
downloadhid-tmff2-62412528ae90b37172675264d7129663a0341ccb.tar.gz
hid-tmff2-62412528ae90b37172675264d7129663a0341ccb.zip
fixed possible kernel oops when unplugging device
Diffstat (limited to 'hid-tmff2.c')
-rw-r--r--hid-tmff2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c
index 4aa6141..3cfd1ad 100644
--- a/hid-tmff2.c
+++ b/hid-tmff2.c
@@ -627,8 +627,8 @@ static void tmff2_remove(struct hid_device *hdev)
if (tmff2->params & PARAM_ALT_MODE)
device_remove_file(dev, &dev_attr_alt_mode);
- tmff2->wheel_destroy(tmff2->data);
hid_hw_stop(hdev);
+ tmff2->wheel_destroy(tmff2->data);
kfree(tmff2->states);
kfree(tmff2);