From: Pete Zaitcev Date: Tue, 22 May 2007 03:52:44 +0000 (-0700) Subject: USB: usblp: Use correct DMA address in case of probe error X-Git-Tag: upstream/snapshot3+hdmi~33653^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdc4abdd0960e7ca946f4ec93b4cf7a2b826b24f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index 15e740e..7b1edfe 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c @@ -1003,7 +1003,7 @@ abort: usblp->writebuf, usblp->writeurb->transfer_dma); if (usblp->readbuf) usb_buffer_free (usblp->dev, USBLP_BUF_SIZE, - usblp->readbuf, usblp->writeurb->transfer_dma); + usblp->readbuf, usblp->readurb->transfer_dma); kfree(usblp->statusbuf); kfree(usblp->device_id_string); usb_free_urb(usblp->writeurb);