diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/misc/iowarrior.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index bc88c79875a1..8ed8d05750d4 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c | |||
@@ -374,7 +374,7 @@ static ssize_t iowarrior_write(struct file *file, | |||
374 | case USB_DEVICE_ID_CODEMERCS_IOWPV2: | 374 | case USB_DEVICE_ID_CODEMERCS_IOWPV2: |
375 | case USB_DEVICE_ID_CODEMERCS_IOW40: | 375 | case USB_DEVICE_ID_CODEMERCS_IOW40: |
376 | /* IOW24 and IOW40 use a synchronous call */ | 376 | /* IOW24 and IOW40 use a synchronous call */ |
377 | buf = kmalloc(8, GFP_KERNEL); /* 8 bytes are enough for both products */ | 377 | buf = kmalloc(count, GFP_KERNEL); |
378 | if (!buf) { | 378 | if (!buf) { |
379 | retval = -ENOMEM; | 379 | retval = -ENOMEM; |
380 | goto exit; | 380 | goto exit; |