From: Bryan Holty Date: Wed, 22 Mar 2006 12:35:39 +0000 (-0600) Subject: [SCSI] scsi_lib.c: properly count the number of pages in scsi_req_map_sg() X-Git-Tag: v2.6.17-rc6~46^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f52359622fa25783cf1a08c0772048d2ed1a7434;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed