public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scatterlist fallout: drivers/scsi/arm/
@ 2007-10-27 18:44 Al Viro
  2007-10-27 19:21 ` Russell King
  2007-10-27 20:17 ` Russell King
  0 siblings, 2 replies; 9+ messages in thread
From: Al Viro @ 2007-10-27 18:44 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: rmk, axboe, linux-kernel


Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/drivers/scsi/arm/scsi.h b/drivers/scsi/arm/scsi.h
index 21ba571..2d09fef 100644
--- a/drivers/scsi/arm/scsi.h
+++ b/drivers/scsi/arm/scsi.h
@@ -39,7 +39,7 @@ static inline int next_SCp(struct scsi_pointer *SCp)
 		SCp->buffer++;
 		SCp->buffers_residual--;
 		SCp->ptr = (char *)
-			 (page_address(SCp->buffer->page) +
+			 (page_address(sg_page(SCp->buffer)) +
 			  SCp->buffer->offset);
 		SCp->this_residual = SCp->buffer->length;
 	} else {
@@ -77,7 +77,7 @@ static inline void init_SCp(struct scsi_cmnd *SCpnt)
 		SCpnt->SCp.buffer = (struct scatterlist *) SCpnt->request_buffer;
 		SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
 		SCpnt->SCp.ptr = (char *)
-			 (page_address(SCpnt->SCp.buffer->page) +
+			 (page_address(sg_page(SCpnt->SCp.buffer)) +
 			  SCpnt->SCp.buffer->offset);
 		SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length;
 		SCpnt->SCp.phase = SCpnt->request_bufflen;

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

end of thread, other threads:[~2007-10-29  9:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 18:44 [PATCH] scatterlist fallout: drivers/scsi/arm/ Al Viro
2007-10-27 19:21 ` Russell King
2007-10-27 20:17 ` Russell King
2007-10-28  5:20   ` Linus Torvalds
2007-10-29  8:59   ` Jens Axboe
2007-10-29  9:07     ` Russell King
2007-10-29  9:12       ` Jens Axboe
2007-10-29  9:21         ` Al Viro
2007-10-29  9:36           ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox