public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] cfi: init wait queue in chip struct
@ 2006-02-22 14:41 Simon Vogl
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Vogl @ 2006-02-22 14:41 UTC (permalink / raw)
  To: linux-mtd

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@researchstudio.at

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [PATCH] cfi: init wait queue in chip struct
@ 2006-02-22 14:29 Simon Vogl
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Vogl @ 2006-02-22 14:29 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

This patch fixes a kernel oops for Intel P30 flashes, where
the wait queue head was not initialized, which in turn caused
a crash at the first read operation.
Simon

--
_______________________________________________________________________
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@researchstudio.at


[-- Attachment #2: init_wq.patch --]
[-- Type: text/x-patch, Size: 595 bytes --]

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-22 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22 14:41 [PATCH] cfi: init wait queue in chip struct Simon Vogl
  -- strict thread matches above, loose matches on Subject: below --
2006-02-22 14:29 Simon Vogl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox