]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] scsi_lib.c: properly count the number of pages in scsi_req_map_sg()
authorJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 8 Jun 2006 04:03:28 +0000 (00:03 -0400)
committerChris Wright <chrisw@sous-sol.org>
Thu, 22 Jun 2006 19:16:12 +0000 (12:16 -0700)
commita4dad8b5746aa25f97c5b94c96fcf20cda9593fb
treeb02b233fc073808d906a78e13b2f6c7186900657
parentb558f9f2cd432f2c8797098f239dad284aba1334
[PATCH] 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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_lib.c