mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix use of unitialized variables.
This commit is contained in:
parent
1aa8a926b8
commit
72820025dd
2 changed files with 3 additions and 2 deletions
|
|
@ -429,6 +429,7 @@ opalpci_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg,
|
|||
config_addr, reg, vtophys(&word));
|
||||
break;
|
||||
default:
|
||||
error = OPAL_SUCCESS;
|
||||
word = 0xffffffff;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ powernv_attach(platform_t plat)
|
|||
char buf[255];
|
||||
pcell_t prop;
|
||||
phandle_t cpu;
|
||||
int res, len, node, idx;
|
||||
int res, len, idx;
|
||||
register_t msr;
|
||||
|
||||
/* Ping OPAL again just to make sure */
|
||||
|
|
@ -194,7 +194,7 @@ powernv_attach(platform_t plat)
|
|||
* for the encoding of the property.
|
||||
*/
|
||||
|
||||
len = OF_getproplen(node, "ibm,segment-page-sizes");
|
||||
len = OF_getproplen(cpu, "ibm,segment-page-sizes");
|
||||
if (len > 0) {
|
||||
/*
|
||||
* We have to use a variable length array on the stack
|
||||
|
|
|
|||
Loading…
Reference in a new issue