mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fix null pointer dereference on nodes without a "compatible" property.
MFC after: 1 week
This commit is contained in:
parent
e4c7e3a1b9
commit
47280ef170
1 changed files with 2 additions and 1 deletions
|
|
@ -399,7 +399,8 @@ macio_attach(device_t dev)
|
|||
continue;
|
||||
|
||||
if (strcmp(ofw_bus_get_name(cdev), "bmac") == 0 ||
|
||||
strcmp(ofw_bus_get_compat(cdev), "bmac+") == 0) {
|
||||
(ofw_bus_get_compat(cdev) != NULL &&
|
||||
strcmp(ofw_bus_get_compat(cdev), "bmac+") == 0)) {
|
||||
uint32_t fcr;
|
||||
|
||||
fcr = bus_read_4(sc->sc_memr, HEATHROW_FCR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue