Messages in this thread Patch in this message | | | Date | Tue, 04 Oct 2005 14:41:48 +0200 (MEST) | From | Clemens Ladisch <> | Subject | [PATCH 4/7] HPET: fix uninitialized variable in hpet_register() |
| |
From: Clemens Ladisch <clemens@ladisch.de>
Clear the ht_opaque field in the hpet_register() function before searching for a free timer to prevent the function from incorrectly assuming that the search succeeded afterwards.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Index: linux-2.6.13/drivers/char/hpet.c =================================================================== --- linux-2.6.13.orig/drivers/char/hpet.c 2005-10-03 22:53:15.000000000 +0200 +++ linux-2.6.13/drivers/char/hpet.c 2005-10-03 22:53:18.000000000 +0200 @@ -587,6 +587,8 @@ int hpet_register(struct hpet_task *tp, return -EINVAL; } + tp->ht_opaque = NULL; + spin_lock_irq(&hpet_task_lock); spin_lock(&hpet_lock); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |