]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ide: fix null request pointer for taskfile ioctl
authorTimothy Thelin <Timothy.Thelin@wdc.com>
Sat, 17 Sep 2005 02:28:16 +0000 (19:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 17 Sep 2005 18:50:03 +0000 (11:50 -0700)
commit0a6f5533362ad1d3af71376b323e6940fe4bb084
tree3ae8e3541ae7f150d7f2c5e08be8af96737c7d2e
parent70702b3d1afef15488391ffffb537949b0d3776e
[PATCH] ide: fix null request pointer for taskfile ioctl

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 <timothy.thelin@wdc.com>
Cc: "Bartlomiej Zolnierkiewicz" <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/ide-taskfile.c