mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
hpt366: fix kernel oops with HPT302N
The driver crashes the kernel on HPT302N chips due to the missing initializer for 'hpt302n.settings' having been unfortunately overlooked so far. :-< Much thanks to Mike Mattie for pin-pointing the reason of crash. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
2571b16dde
commit
38b66f8444
1 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* linux/drivers/ide/pci/hpt366.c Version 1.01 Dec 23, 2006
|
* linux/drivers/ide/pci/hpt366.c Version 1.02 Apr 18, 2007
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2003 Andre Hedrick <andre@linux-ide.org>
|
* Copyright (C) 1999-2003 Andre Hedrick <andre@linux-ide.org>
|
||||||
* Portions Copyright (C) 2001 Sun Microsystems, Inc.
|
* Portions Copyright (C) 2001 Sun Microsystems, Inc.
|
||||||
* Portions Copyright (C) 2003 Red Hat Inc
|
* Portions Copyright (C) 2003 Red Hat Inc
|
||||||
* Portions Copyright (C) 2005-2006 MontaVista Software, Inc.
|
* Portions Copyright (C) 2005-2007 MontaVista Software, Inc.
|
||||||
*
|
*
|
||||||
* Thanks to HighPoint Technologies for their assistance, and hardware.
|
* Thanks to HighPoint Technologies for their assistance, and hardware.
|
||||||
* Special Thanks to Jon Burchmore in SanDiego for the deep pockets, his
|
* Special Thanks to Jon Burchmore in SanDiego for the deep pockets, his
|
||||||
|
@ -494,6 +494,7 @@ static struct hpt_info hpt302n __devinitdata = {
|
||||||
.chip_type = HPT302N,
|
.chip_type = HPT302N,
|
||||||
.max_mode = HPT302_ALLOW_ATA133_6 ? 4 : 3,
|
.max_mode = HPT302_ALLOW_ATA133_6 ? 4 : 3,
|
||||||
.dpll_clk = 77,
|
.dpll_clk = 77,
|
||||||
|
.settings = hpt37x_settings
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct hpt_info hpt371n __devinitdata = {
|
static struct hpt_info hpt371n __devinitdata = {
|
||||||
|
|
Loading…
Reference in a new issue