diff options
Diffstat (limited to 'sys/src/9/pc/ether82598.c')
| -rw-r--r-- | sys/src/9/pc/ether82598.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/ether82598.c b/sys/src/9/pc/ether82598.c index 459b1fb0f..6c72474e0 100644 --- a/sys/src/9/pc/ether82598.c +++ b/sys/src/9/pc/ether82598.c @@ -336,10 +336,10 @@ ifstat(Ether *e, void *a, long n, ulong offset) char *s, *p, *q; Ctlr *c; - c = e->ctlr; - p = s = malloc(READSTR); + p = s = smalloc(READSTR); q = p + READSTR; + c = e->ctlr; readstats(c); for(i = 0; i < nelem(stattab); i++) if(c->stats[i] > 0) |
