commit | f52359622fa25783cf1a08c0772048d2ed1a7434 | [log] [tgz] |
---|---|---|
author | Bryan Holty <lgeek@frontiernet.net> | Wed Mar 22 06:35:39 2006 -0600 |
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | Thu Jun 01 09:16:55 2006 -0500 |
tree | b9b06d8b289d6c9bdb401282497079c4a5b2792c | |
parent | 9f434d4f84a235f6b61aec6e691d6b07bc46fc24 [diff] |
[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>