linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [patch] ps3disk: passing wrong variable to bvec_kunmap_irq()
@ 2010-10-11 19:13 Dan Carpenter
  2010-10-11 19:42 ` Jens Axboe
  2010-10-12 16:01 ` Geoff Levand
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Carpenter @ 2010-10-11 19:13 UTC (permalink / raw)
  To: Geoff Levand
  Cc: cbe-oss-dev, Martin K. Petersen, Jens Axboe, kernel-janitors,
	FUJITA Tomonori, linuxppc-dev

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>

diff --git a/drivers/block/ps3disk.c b/drivers/block/ps3disk.c
index e9da874..03688c2 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++;
 	}
 }

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-17 11:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 19:13 [patch] ps3disk: passing wrong variable to bvec_kunmap_irq() Dan Carpenter
2010-10-11 19:42 ` Jens Axboe
2010-10-16 19:39   ` Geert Uytterhoeven
2010-10-17  6:49     ` Jens Axboe
2010-10-17 11:36       ` Geert Uytterhoeven
2010-10-12 16:01 ` Geoff Levand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).