]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_lib.c: properly count the number of pages in scsi_req_map_sg()
authorBryan Holty <lgeek@frontiernet.net>
Wed, 22 Mar 2006 12:35:39 +0000 (06:35 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 1 Jun 2006 14:16:55 +0000 (09:16 -0500)
commit74ac35d505873256a0a479a7e868adeaa2fdd6b8
treeb9b06d8b289d6c9bdb401282497079c4a5b2792c
parent653120178be5667d664435001d9e8c96407f5689
[SCSI] scsi_lib.c: properly count the number of pages in scsi_req_map_sg()

The calculation of nr_pages in scsi_req_map_sg() doesn't account for
the fact that the first page could have an offset that pushes the end
of the buffer onto a new page.

Signed-off-by: Bryan Holty <lgeek@frontiernet.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c