From: Dan Carpenter Date: Mon, 11 Oct 2010 19:41:35 +0000 (+0200) Subject: ps3disk: passing wrong variable to bvec_kunmap_irq() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93055c31045a2d5599ec613a0c6cdcefc481a460;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ps3disk: passing wrong variable to bvec_kunmap_irq() This should pass "buf" to bvec_kunmap_irq() instead of "bv". The api is like kmap_atomic() instead of kmap(). Signed-off-by: Dan Carpenter Acked-by: Geoff Levand Signed-off-by: Jens Axboe --- diff --git a/drivers/block/ps3disk.c b/drivers/block/ps3disk.c index e9da874d0419..03688c2da319 100644 --- a/drivers/block/ps3disk.c +++ b/drivers/block/ps3disk.c @@ -113,7 +113,7 @@ static void ps3disk_scatter_gather(struct ps3_storage_device *dev, memcpy(buf, dev->bounce_buf+offset, size); offset += size; flush_kernel_dcache_page(bvec->bv_page); - bvec_kunmap_irq(bvec, &flags); + bvec_kunmap_irq(buf, &flags); i++; } }