aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Pagani <>2021-01-15 14:58:49 +0100
committerDario Pagani <>2021-01-15 14:58:49 +0100
commit5f48f29eb8fb7036ad8ae45bdda1f2c3db21f0cf (patch)
treefab0e74474edd7c76add6e72d93a1d510a085073
parente42e3edca03f3cbefc3f44649c62948ae50066bb (diff)
parentaf079a73b61a61d8975b29b329c934371df6831e (diff)
downloadhid-tminit-5f48f29eb8fb7036ad8ae45bdda1f2c3db21f0cf.tar.gz
hid-tminit-5f48f29eb8fb7036ad8ae45bdda1f2c3db21f0cf.zip
Merge branch 'master' of github.com:scarburato/hid-tminit
-rw-r--r--hid-tminit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/hid-tminit.c b/hid-tminit.c
index 1538bab..f7c7814 100644
--- a/hid-tminit.c
+++ b/hid-tminit.c
@@ -54,7 +54,7 @@ static void tminit_interrupts(struct hid_device *hdev){
}
}
- kzfree(send_buf);
+ kfree(send_buf);
}
static void tminit_change_handler(struct urb *urb)
@@ -135,10 +135,10 @@ static void tminit_remove(struct hid_device *hdev)
usb_kill_urb(tm_wheel->urb);
- kzfree(tm_wheel->response);
- kzfree(tm_wheel->model_request);
+ kfree(tm_wheel->response);
+ kfree(tm_wheel->model_request);
usb_free_urb(tm_wheel->urb);
- kzfree(tm_wheel);
+ kfree(tm_wheel);
hid_hw_stop(hdev);
}
@@ -227,10 +227,10 @@ static int tminit_probe(struct hid_device *hdev, const struct hid_device_id *id)
return ret;
-error5: kzfree(tm_wheel->response);
-error4: kzfree(tm_wheel->model_request);
+error5: kfree(tm_wheel->response);
+error4: kfree(tm_wheel->model_request);
error3: usb_free_urb(tm_wheel->urb);
-error2: kzfree(tm_wheel);
+error2: kfree(tm_wheel);
error1: hid_hw_stop(hdev);
error0:
return ret;