diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 16:55:26 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 16:55:26 +0100 |
commit | bf3476d661e05208b78f70cdaa5656ff77264d23 (patch) | |
tree | f5c52910b93aa74586740a54f6b2911e95ae96cc /sys/src/9/pc/ether82598.c | |
parent | 589f99915eb95d9207c08259c8880675a0a502cf (diff) |
kernel: fix inproper use of malloc/smalloc
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) |