>  error:
> -     usb_buffer_free(dev->udev, writesize, buf, urb->transfer_dma);
> +     if (buf)
> +             usb_buffer_free(dev->udev, writesize, buf, urb->transfer_dma);
>       usb_free_urb(urb);

I think that's the wrong policy ... whatever code handles that call should
be able to handle "buf == NULL".  Such tests don't need to be scattered
through all the drivers...



_______________________________________________
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