Re: [PATCH 16/16] USB: cdc-acm: re-write read processing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Dienstag, 22. März 2011, 11:12:24 schrieb Johan Hovold:
> +static void acm_read_bulk_callback(struct urb *urb)
> +{
> +       struct acm_rb *rb = urb->context;
> +       struct acm *acm = rb->instance;
> +       unsigned long flags;
>  
> -               buf = list_entry(acm->spare_read_bufs.next,
> -                                struct acm_rb, list);
> -               list_del(&buf->list);
> +       dev_vdbg(&acm->data->dev, "%s - urb %d, len %d\n", __func__,
> +                                       rb->index, urb->actual_length);
> +       set_bit(rb->index, &acm->read_urbs_free);

You are marking the URB as free before it is processed.

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux