]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sg traverse fix for __atapi_pio_bytes()
authorAlbert Lee <albertcc@tw.ibm.com>
Mon, 6 Jun 2005 07:56:03 +0000 (15:56 +0800)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 9 Jun 2005 07:14:59 +0000 (03:14 -0400)
commit11a7ba7bb87f8594c93364741b427905fbdae09f
treebf8709691e303a533e5798c4c7c5a17c9d752fed
parent2f42ef0ceb9011bf374b56cdb2ceb15c062cede0
[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 <albertcc@tw.ibm.com>
drivers/scsi/libata-core.c