On Tuesday 12 July 2005 22:56, Greg KH wrote:
>  drivers/usb/misc/ldusb.c               |  794 
> +++++++++++++++++++++++++++++++++

> --- /dev/null
> +++ b/drivers/usb/misc/ldusb.c
> 
> +static int ld_usb_probe(struct usb_interface *intf, const struct 
> usb_device_id *id)
> +{
> 
> +     if ((le16_to_cpu(udev->descriptor.idVendor) == USB_VENDOR_ID_LD) &&
> +         ((le16_to_cpu(udev->descriptor.idProduct) == USB_DEVICE_ID_CASSY) ||
> +          (le16_to_cpu(udev->descriptor.idProduct) == 
> USB_DEVICE_ID_COM3LAB)) &&
> +         (le16_to_cpu(udev->descriptor.bcdDevice) <= 0x103)) {
> +             buffer = kmalloc(256, GFP_KERNEL);

Unchecked kmalloc().

> +             /* usb_string makes SETUP+STALL to leave always ControlReadLoop 
> */
> +             usb_string(udev, 255, buffer, 256);
> +             kfree(buffer);
> +     }


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to