staging: comedi: usbdux: allocating too much data
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 20 Aug 2013 09:06:19 +0000 (12:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 17:07:17 +0000 (10:07 -0700)
commitded82ef91e247692682d696462f5f7e1f528758c
tree4ba22dd45b207e425bd96b5843da62f76b9ab1f4
parent253d50ebda91154a03767b0a97ef99c293b175b2
staging: comedi: usbdux: allocating too much data

We only need to allocate enough space for a pointer.  We allocate the
space for the urbs themselves with the call to usb_alloc_urb() a few
lines later.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbdux.c