Commit dc9094be authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: printer fix as found by the CHECKER tool.

pay attention to return value of usb_submit_urb as found by the CHECKER tool.
parent 77cb93d3
...@@ -722,7 +722,8 @@ static ssize_t usblp_read(struct file *file, char *buffer, size_t count, loff_t ...@@ -722,7 +722,8 @@ static ssize_t usblp_read(struct file *file, char *buffer, size_t count, loff_t
usblp->minor, usblp->readurb->status); usblp->minor, usblp->readurb->status);
usblp->readurb->dev = usblp->dev; usblp->readurb->dev = usblp->dev;
usblp->readcount = 0; usblp->readcount = 0;
usb_submit_urb(usblp->readurb, GFP_KERNEL); if (usb_submit_urb(usblp->readurb, GFP_KERNEL) < 0)
dbg("error submitting urb");
count = -EIO; count = -EIO;
goto done; goto done;
} }
......
Markdown is supported
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