Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: usblp: Use correct DMA address in case of probe error

Looks like the error path had a copy-paste error. The normal exit path
uses correct URB already.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Pete Zaitcev and committed by
Greg Kroah-Hartman
bdc4abdd b268f484

+1 -1
+1 -1
drivers/usb/class/usblp.c
··· 1003 1003 usblp->writebuf, usblp->writeurb->transfer_dma); 1004 1004 if (usblp->readbuf) 1005 1005 usb_buffer_free (usblp->dev, USBLP_BUF_SIZE, 1006 - usblp->readbuf, usblp->writeurb->transfer_dma); 1006 + usblp->readbuf, usblp->readurb->transfer_dma); 1007 1007 kfree(usblp->statusbuf); 1008 1008 kfree(usblp->device_id_string); 1009 1009 usb_free_urb(usblp->writeurb);