From: Albert Lee Date: Mon, 6 Jun 2005 07:56:03 +0000 (+0800) Subject: [PATCH] sg traverse fix for __atapi_pio_bytes() X-Git-Tag: v2.6.12~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6952df035509717bdc46194b2a3d6ffb9349f267;p=pandora-kernel.git [PATCH] sg traverse fix for __atapi_pio_bytes() Problem: Incorrect md5sum when using ATAPI PIO mode to verify a distro CD. Root cause: sg traverse problem. In __atapi_pio_bytes(), if qc->cursg++ is increased and "goto next_page" is executed, then sg is not updated to the new qc->cursg and the old sg is overwritten with the new data. Changes: - Replace "goto next_page" with "goto next_sg" to make sg updated. Signed-off-by: Albert Lee --- Reading git-diff-tree failed