cfi: init wait queue in chip struct
PATCH 1/1 cfi: init wait queue in chip struct
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
drivers/mtd/chips/cfi_cmdset_0001.c +1 -0
@@ -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;
Signature · 8 lines
_______________________________________________________________________ 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: [email protected]