Commit e8fa0ce6 authored by Pete Zaitcev's avatar Pete Zaitcev Committed by Greg Kroah-Hartman
Browse files

usblp: Make use of URB_FREE_BUFFER

Employ the new API URB_FREE_BUFFER that we've got. There was talk of a combined
constructor for this case, but apparently it's not happening, so just set the
flag explicitly for now.
Signed-off-by: default avatarPete Zaitcev <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 7f477358
......@@ -331,9 +331,6 @@ static void usblp_bulk_write(struct urb *urb)
/* XXX Use usb_setup_bulk_urb when available. Talk to Marcel. */
urb->transfer_buffer = NULL; /* Not refcounted, so to be safe... */
......@@ -719,6 +716,7 @@ static ssize_t usblp_write(struct file *file, const char __user *buffer, size_t
writebuf, transfer_length, usblp_bulk_write, usblp);
writeurb->transfer_flags |= URB_FREE_BUFFER;
usb_anchor_urb(writeurb, &usblp->urbs);
if (copy_from_user(writebuf,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment