mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Since r221218 rman_manage_region(9) actually honors rm_start and rm_end
which may cause problems when these contain garbage so zero the range descriptors embedding the rmans when allocating them. Approved by: re (kib) MFC after: 3 days
This commit is contained in:
parent
8348113cef
commit
c4a2a39004
1 changed files with 2 additions and 2 deletions
|
|
@ -303,8 +303,8 @@ sbus_attach(device_t dev)
|
|||
sizeof(*range), (void **)&range)) == -1) {
|
||||
panic("%s: error getting ranges property", __func__);
|
||||
}
|
||||
sc->sc_rd = (struct sbus_rd *)malloc(sizeof(*sc->sc_rd) * sc->sc_nrange,
|
||||
M_DEVBUF, M_NOWAIT);
|
||||
sc->sc_rd = malloc(sizeof(*sc->sc_rd) * sc->sc_nrange, M_DEVBUF,
|
||||
M_NOWAIT | M_ZERO);
|
||||
if (sc->sc_rd == NULL)
|
||||
panic("%s: cannot allocate rmans", __func__);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue