When doing ioctl HDIO_DRIVE_TASKFILE, the ide_task_t's
request pointer is never set, but flagged_taskfile and
do_rw_taskfile pass it as a parameter to the prehandler.
The kernel will oops taskfile pio-out commands because of this
(taskfile pio-in doesn't use a prehandler). This fix sets the
request pointer at the time the request is created to stop this
oops.
Signed-off-by: Timothy Thelin <[email protected]>
--- linux-2.6.13.orig/drivers/ide/ide-taskfile.c 2005-08-28
16:41:01.000000000 -0700
+++ linux-2.6.13/drivers/ide/ide-taskfile.c 2005-09-09
13:47:41.000000000 -0700
@@ -500,6 +500,7 @@ static int ide_diag_taskfile(ide_drive_t
}
rq.special = args;
+ args->rq = &rq;
return ide_do_drive_cmd(drive, &rq, ide_wait);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|