mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Don't deref a NULL mem_range_softc.mr_op pointer on non-MTRR systems when
starting the AP.
This commit is contained in:
parent
84b399de51
commit
cbdfdcb2f4
2 changed files with 4 additions and 4 deletions
|
|
@ -38,7 +38,7 @@
|
|||
*
|
||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: mem.c,v 1.57 1999/04/30 22:09:39 msmith Exp $
|
||||
* $Id: mem.c,v 1.58 1999/05/02 03:06:22 msmith Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
@ -530,7 +530,7 @@ mem_range_attr_set(struct mem_range_desc *mrd, int *arg)
|
|||
void
|
||||
mem_range_AP_init(void)
|
||||
{
|
||||
if (mem_range_softc.mr_op->initAP)
|
||||
if (mem_range_softc.mr_op && mem_range_softc.mr_op->initAP)
|
||||
return(mem_range_softc.mr_op->initAP(&mem_range_softc));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
*
|
||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: mem.c,v 1.57 1999/04/30 22:09:39 msmith Exp $
|
||||
* $Id: mem.c,v 1.58 1999/05/02 03:06:22 msmith Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
@ -530,7 +530,7 @@ mem_range_attr_set(struct mem_range_desc *mrd, int *arg)
|
|||
void
|
||||
mem_range_AP_init(void)
|
||||
{
|
||||
if (mem_range_softc.mr_op->initAP)
|
||||
if (mem_range_softc.mr_op && mem_range_softc.mr_op->initAP)
|
||||
return(mem_range_softc.mr_op->initAP(&mem_range_softc));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue