/[linux-patches]/genpatches-2.6/trunk/2.6.14/1452_15.5_cfi-init-wait-queue.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1452_15.5_cfi-init-wait-queue.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 1216 byte(s)
2.6.14-11, rebase against local tree
1 Re-diffed for 2.6.14.7 by Kerin Millar <kerframil@gmail.com>:
2
3 From: Simon Vogl <simon.vogl@researchstudios.at>
4 Date: Fri, 24 Feb 2006 21:04:09 +0000 (-0800)
5 Subject: [PATCH] cfi: init wait queue in chip struct
6 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=3bf8ce11c70ef5dc2298c7fff4a744c48e87b9f0
7
8 [PATCH] cfi: init wait queue in chip struct
9
10 Fix a kernel oops for Intel P30 flashes, where the wait queue head was not
11 initialized for the flchip struct, which in turn caused a crash at the
12 first read operation.
13
14 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
15 Cc: <stable@kernel.org>
16 Signed-off-by: Andrew Morton <akpm@osdl.org>
17 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
18 ---
19
20 --- linux-2.6.14.7.orig/drivers/mtd/chips/cfi_cmdset_0001.c 2005-10-27 19:02:08.000000000 -0500
21 +++ linux-2.6.14.7/drivers/mtd/chips/cfi_cmdset_0001.c 2006-03-07 05:23:23.000000000 -0500
22 @@ -379,6 +379,7 @@
23 cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp;
24 cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp;
25 cfi->chips[i].ref_point_counter = 0;
26 + init_waitqueue_head(&(cfi->chips[i].wq));
27 }
28
29 map->fldrv = &cfi_intelext_chipdrv;

  ViewVC Help
Powered by ViewVC 1.1.20