* [PATCH] IDE: typo in ide-io.c leads to faulty assignment
@ 2006-11-27 14:51 Elias Oltmanns
2006-11-27 15:08 ` Alan
2006-11-27 16:01 ` Jesper Juhl
0 siblings, 2 replies; 4+ messages in thread
From: Elias Oltmanns @ 2006-11-27 14:51 UTC (permalink / raw)
To: linux-ide; +Cc: linux-kernel, stable
[-- Attachment #1: Type: text/plain, Size: 258 bytes --]
Due to a typo in ide_start_power_step, the result of a function rather
than its pointer is assigned to args->handler. The patch applies to
2.6.19-rc6 but the problem exists in the stable branch as well.
Signed-off-by: Elias Oltmanns <eo@nebensachen.de>
---
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ide-io.c.patch --]
[-- Type: text/x-patch, Size: 542 bytes --]
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index 2614f41..48a249d 100644
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -213,7 +213,7 @@ static ide_startstop_t ide_start_power_s
case idedisk_pm_idle: /* Resume step 2 (idle) */
args->tfRegister[IDE_COMMAND_OFFSET] = WIN_IDLEIMMEDIATE;
args->command_type = IDE_DRIVE_TASK_NO_DATA;
- args->handler = task_no_data_intr;
+ args->handler = &task_no_data_intr;
return do_rw_taskfile(drive, args);
case ide_pm_restore_dma: /* Resume step 3 (restore DMA) */
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] IDE: typo in ide-io.c leads to faulty assignment
2006-11-27 14:51 [PATCH] IDE: typo in ide-io.c leads to faulty assignment Elias Oltmanns
@ 2006-11-27 15:08 ` Alan
2006-11-27 16:01 ` Jesper Juhl
1 sibling, 0 replies; 4+ messages in thread
From: Alan @ 2006-11-27 15:08 UTC (permalink / raw)
To: Elias Oltmanns; +Cc: linux-ide, linux-kernel, stable
On Mon, 27 Nov 2006 15:51:33 +0100
Elias Oltmanns <eo@nebensachen.de> wrote:
> Due to a typo in ide_start_power_step, the result of a function rather
> than its pointer is assigned to args->handler.
NAK
If it was the result of the function it would end with (arguments);
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] IDE: typo in ide-io.c leads to faulty assignment
2006-11-27 14:51 [PATCH] IDE: typo in ide-io.c leads to faulty assignment Elias Oltmanns
2006-11-27 15:08 ` Alan
@ 2006-11-27 16:01 ` Jesper Juhl
2006-11-27 16:31 ` Elias Oltmanns
1 sibling, 1 reply; 4+ messages in thread
From: Jesper Juhl @ 2006-11-27 16:01 UTC (permalink / raw)
To: linux-ide, linux-kernel, stable
On 27/11/06, Elias Oltmanns <eo@nebensachen.de> wrote:
> Due to a typo in ide_start_power_step, the result of a function rather
> than its pointer is assigned to args->handler. The patch applies to
> 2.6.19-rc6 but the problem exists in the stable branch as well.
>
These two lines :
- args->handler = task_no_data_intr;
+ args->handler = &task_no_data_intr;
do the same thing.
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] IDE: typo in ide-io.c leads to faulty assignment
2006-11-27 16:01 ` Jesper Juhl
@ 2006-11-27 16:31 ` Elias Oltmanns
0 siblings, 0 replies; 4+ messages in thread
From: Elias Oltmanns @ 2006-11-27 16:31 UTC (permalink / raw)
To: linux-ide; +Cc: linux-kernel
"Jesper Juhl" <jesper.juhl@gmail.com> wrote:
> These two lines :
>
> - args->handler = task_no_data_intr;
> + args->handler = &task_no_data_intr;
>
> do the same thing.
Thanks for explaining, obviously I got a bit confused.
Sorry for the noise.
Elias
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-11-27 16:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-27 14:51 [PATCH] IDE: typo in ide-io.c leads to faulty assignment Elias Oltmanns
2006-11-27 15:08 ` Alan
2006-11-27 16:01 ` Jesper Juhl
2006-11-27 16:31 ` Elias Oltmanns
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).