From: Bartlomiej Zolnierkiewicz Date: Mon, 5 Nov 2007 20:42:26 +0000 (+0100) Subject: ide: check rq->cmd_type in drive_cmd_intr() X-Git-Tag: v2.6.24-rc2~29^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=320112bd28d3c477f6990bfe8762ccb978106a08;p=pandora-kernel.git ide: check rq->cmd_type in drive_cmd_intr() drive_cmd_intr() is used by both REQ_TYPE_ATA_CMD and REQ_TYPE_ATA_TASK but commands using PIO-in protocol are valid only for REQ_TYPE_ATA_CMD (&args[4] in case of REQ_TYPE_ATA_TASK points to a value for IDE_LCYL_REG register instead of the data buffer). This fix allows REQ_TYPE_ATA_TASK commands to use non-zero values for IDE_SECTOR_REG (args[3]). Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed