]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ps3disk: passing wrong variable to bvec_kunmap_irq()
authorDan Carpenter <error27@gmail.com>
Mon, 11 Oct 2010 19:41:35 +0000 (21:41 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 12 Oct 2010 16:56:33 +0000 (18:56 +0200)
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 <error27@gmail.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/ps3disk.c

index e9da874d04192b125561f4b71d8ba21ce55fadcc..03688c2da319c007f4923c4ffd989e4f9666b755 100644 (file)
@@ -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++;
        }
 }