diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 19:17:58 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-12-12 19:17:58 +0100 |
commit | 8cb8043d0ebeadb0d424fb1051a49573430322a3 (patch) | |
tree | 3bb91278b127dce9ebf0d30975bc7197ac2765a8 /sys/src/9/port/devaoe.c | |
parent | 304ee3b2b55971d9f5f820511fb9cdadcb77b818 (diff) |
kernel: fix more malloc/smalloc errors
Diffstat (limited to 'sys/src/9/port/devaoe.c')
-rw-r--r-- | sys/src/9/port/devaoe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/port/devaoe.c b/sys/src/9/port/devaoe.c index 1040b080a..63a0cd0e8 100644 --- a/sys/src/9/port/devaoe.c +++ b/sys/src/9/port/devaoe.c @@ -248,7 +248,7 @@ srballoc(ulong sz) { Srb *srb; - srb = malloc(sizeof *srb+sz); + srb = smalloc(sizeof *srb+sz); srb->state = Alloc; srb->dp = srb->data = srb+1; srb->ticksent = Ticks; @@ -260,7 +260,7 @@ srbkalloc(void *db, ulong) { Srb *srb; - srb = malloc(sizeof *srb); + srb = smalloc(sizeof *srb); srb->state = Alloc; srb->dp = srb->data = db; srb->ticksent = Ticks; @@ -1454,7 +1454,7 @@ configwrite(Aoedev *d, void *db, long len) if(len > sizeof d->config) error(Etoobig); srb = srballoc(len); - s = malloc(len); + s = smalloc(len); memmove(s, db, len); if(waserror()){ srbfree(srb); |