[PATCH] cfi: init wait queue in chip struct
Simon Vogl
simon.vogl at researchstudios.at
Wed Feb 22 09:41:31 EST 2006
This patch fixes a kernel oops for Intel P30 flashes, where
the wait queue head was not initialized for the flchip struct, which
in turn caused a crash at the first read operation.
Simon
diff -ur linux-2.6.15.4.mtd-git/drivers/mtd/chips/cfi_cmdset_0001.c linux-2.6.15.4/drivers/mtd/chips/cfi_cmdset_0001.c
--- linux-2.6.15.4.mtd-git/drivers/mtd/chips/cfi_cmdset_0001.c 2006-02-21 15:23:34.000000000 +0100
+++ linux-2.6.15.4/drivers/mtd/chips/cfi_cmdset_0001.c 2006-02-22 11:48:29.000000000 +0100
@@ -408,6 +408,7 @@
cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp;
cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp;
cfi->chips[i].ref_point_counter = 0;
+ init_waitqueue_head(&(cfi->chips[i].wq));
}
map->fldrv = &cfi_intelext_chipdrv;
--
_______________________________________________________________________
Dr. Simon Vogl
ARC Seibersdorf research GmbH
Research Studios Austria, Studio Pervasive Computing Applications
Aubrunnerweg 1, A-4040 Linz, Austria
Tel: +43 732 2468-5350, Fax: +43 732 2468-25350
mailto: simon.vogl at researchstudio.at
More information about the linux-mtd
mailing list