Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932071AbWB0Wgu (ORCPT ); Mon, 27 Feb 2006 17:36:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932365AbWB0Wg1 (ORCPT ); Mon, 27 Feb 2006 17:36:27 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:33409 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S932387AbWB0Wby (ORCPT ); Mon, 27 Feb 2006 17:31:54 -0500 Message-Id: <20060227223354.715642000@sorel.sous-sol.org> References: <20060227223200.865548000@sorel.sous-sol.org> Date: Mon, 27 Feb 2006 14:32:23 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org, torvalds@osdl.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , akpm@osdl.org, alan@lxorguk.ukuu.org.uk, simon.vogl@researchstudios.at, tglx@linutronix.de Subject: [patch 23/39] [PATCH] cfi: init wait queue in chip struct Content-Disposition: inline; filename=cfi-init-wait-queue-in-chip-struct.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 33 -stable review patch. If anyone has any objections, please let us know. ------------------ Fix 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. Signed-off-by: Thomas Gleixner Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Wright --- drivers/mtd/chips/cfi_cmdset_0001.c | 1 + 1 files changed, 1 insertion(+) --- linux-2.6.15.4.orig/drivers/mtd/chips/cfi_cmdset_0001.c +++ linux-2.6.15.4/drivers/mtd/chips/cfi_cmdset_0001.c @@ -408,6 +408,7 @@ struct mtd_info *cfi_cmdset_0001(struct cfi->chips[i].buffer_write_time = 1<cfiq->BufWriteTimeoutTyp; cfi->chips[i].erase_time = 1<cfiq->BlockEraseTimeoutTyp; cfi->chips[i].ref_point_counter = 0; + init_waitqueue_head(&(cfi->chips[i].wq)); } map->fldrv = &cfi_intelext_chipdrv; -- - 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/