mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Fix problem introduced in the CMD640 workaround which could lead
to a NULL pointer dereference. PR: kern/3696 Submitted by: Joel.Faedi@esial.u-nancy.fr
This commit is contained in:
parent
e40c79386c
commit
9a8979b997
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26199
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.128 1997/04/03 09:43:50 phk Exp $
|
||||
* $Id: wd.c,v 1.129 1997/04/28 19:26:16 se Exp $
|
||||
*/
|
||||
|
||||
/* TODO:
|
||||
@ -528,7 +528,11 @@ next: }
|
||||
* doesn't work now because the ambient ipl is too high.
|
||||
*/
|
||||
#ifdef CMD640
|
||||
wdtab[du->dk_ctrlr_cmd640].b_active = 2;
|
||||
if (eide_quirks & Q_CMD640B) {
|
||||
wdtab[PRIMARY].b_active = 2;
|
||||
} else {
|
||||
wdtab[dvp->id_unit].b_active = 2;
|
||||
}
|
||||
#else
|
||||
wdtab[dvp->id_unit].b_active = 2;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user