]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit1a360d31a6838ce034bc208c71b9a53772657dd9
tree3e7683501f150b6eff19226da139cbd5f69d3b78
parent905cef0b42921b898c81d1f661075d3910d5a6d9
[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