[SCSI] sg: fix incorrect page problem
authorDouglas Gilbert <dougg@torque.net>
Sat, 19 Aug 2006 04:11:34 +0000 (00:11 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 26 Aug 2006 14:25:06 +0000 (09:25 -0500)
commitb2155d0417df9f2b4c0d396b6530b864d9f08623
tree3e7683501f150b6eff19226da139cbd5f69d3b78
parent48e2691f9c3bd6719e773f0b883449f4cef39585
[SCSI] sg: fix incorrect page problem

There's a problem where sg is executing a ->nopage operation on a
compound page, it actually calls get_page() on the first page in the
compound rather than the page which is being mapped.  The fix is to
select the correct page by indexing into the compound.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sg.c