diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2020-11-01 16:09:35 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2020-11-01 16:09:35 +0200 |
| commit | f4faf301ef8ce9e86a092569f5656293fb4de666 (patch) | |
| tree | e2308e384817afa69c36e7de04cb7146a513bd41 /hid-tmt300rs.c | |
| parent | e2b24eaa25c83955b9b1ec873aa24f910c0b1eb8 (diff) | |
| download | hid-tmff2-f4faf301ef8ce9e86a092569f5656293fb4de666.tar.gz hid-tmff2-f4faf301ef8ce9e86a092569f5656293fb4de666.zip | |
Messing around with possible init issue(?)
Diffstat (limited to 'hid-tmt300rs.c')
| -rw-r--r-- | hid-tmt300rs.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/hid-tmt300rs.c b/hid-tmt300rs.c index c401180..e92dc94 100644 --- a/hid-tmt300rs.c +++ b/hid-tmt300rs.c @@ -1259,11 +1259,13 @@ void t300rs_ctrl_handler(struct urb *urb){ response[3]); usb_free_urb(urb); + kzfree(response); } void t300rs_init_interrupts(struct t300rs_device_entry *t300rs){ - int ret, trans; - u8 *send_buffer = kzalloc(T300RS_BUFFER_LENGTH, GFP_ATOMIC); + int ret; + //int trans; + //u8 *send_buffer = kzalloc(T300RS_BUFFER_LENGTH, GFP_ATOMIC); struct urb *urb = usb_alloc_urb(0, GFP_ATOMIC); struct usb_ctrlrequest* rq = kzalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC); response = kzalloc(4, GFP_ATOMIC); @@ -1289,6 +1291,7 @@ void t300rs_init_interrupts(struct t300rs_device_entry *t300rs){ usb_submit_urb(urb, GFP_ATOMIC); + /* send_buffer[0] = 0x42; send_buffer[1] = 0x01; @@ -1380,7 +1383,13 @@ void t300rs_init_interrupts(struct t300rs_device_entry *t300rs){ } memset(send_buffer, 0, T300RS_BUFFER_LENGTH); err: - kfree(send_buffer); + */ + //kfree(send_buffer); + return; + +err: + usb_free_urb(urb); + kzfree(response); return; } |
