From bf3476d661e05208b78f70cdaa5656ff77264d23 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 12 Dec 2011 16:55:26 +0100 Subject: kernel: fix inproper use of malloc/smalloc --- sys/src/9/pc/devpccard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/9/pc/devpccard.c') diff --git a/sys/src/9/pc/devpccard.c b/sys/src/9/pc/devpccard.c index cd7321de9..8055cf9bc 100644 --- a/sys/src/9/pc/devpccard.c +++ b/sys/src/9/pc/devpccard.c @@ -1292,7 +1292,7 @@ pccardread(Chan *c, void *a, long n, vlong offset) return devdirread(c, a, n, 0, 0, pccardgen); case Qctl: - buf = p = malloc(READSTR); + buf = p = smalloc(READSTR); buf[0] = 0; e = p + READSTR; -- cgit v1.2.3