Skip to content
Commit a4dad8b5 authored by James Bottomley's avatar James Bottomley Committed by Chris Wright
Browse files

[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: default avatarBryan Holty <lgeek@frontiernet.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b558f9f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment