diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-29 20:55:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-29 20:55:35 +0000 |
commit | 9da82e1fd89bd737f396aba53e9f1790a1e795f2 (patch) | |
tree | 2b505e5476f26b0ef72593aadcc2b16a8d3d4525 /sys/dev/ic/rt2661.c | |
parent | 8863901c4f4a353f58b08c5ce893fe39d1cc06a3 (diff) |
firmware sizes are known; use them for free()
Diffstat (limited to 'sys/dev/ic/rt2661.c')
-rw-r--r-- | sys/dev/ic/rt2661.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c index 97a7d36f893..40a46b478df 100644 --- a/sys/dev/ic/rt2661.c +++ b/sys/dev/ic/rt2661.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2661.c,v 1.80 2015/03/14 03:38:47 jsg Exp $ */ +/* $OpenBSD: rt2661.c,v 1.81 2015/08/29 20:55:34 deraadt Exp $ */ /*- * Copyright (c) 2006 @@ -396,7 +396,7 @@ rt2661_detach(void *xsc) rt2661_free_rx_ring(sc, &sc->rxq); if (sc->ucode != NULL) - free(sc->ucode, M_DEVBUF, 0); + free(sc->ucode, M_DEVBUF, sc->ucsize); return 0; } |