diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-03-23 16:23:19 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-03-23 16:23:19 +0000 |
commit | cfa4b709d213a906bf950f27ebf352df7ca1ca0f (patch) | |
tree | 5dc7602a9313bb878d6518a3f5d4623b12fc22f7 /sys/dev/ic/ar5212.c | |
parent | da02d7f10cbe839e0f079554fd51e0c94b4056a7 (diff) |
fix a possible kernel panic in the ar5211 and ar5212 detach functions.
closes PR #4153.
Diffstat (limited to 'sys/dev/ic/ar5212.c')
-rw-r--r-- | sys/dev/ic/ar5212.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5212.c b/sys/dev/ic/ar5212.c index 76f781e64f4..e7ed9a17b2d 100644 --- a/sys/dev/ic/ar5212.c +++ b/sys/dev/ic/ar5212.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5212.c,v 1.10 2005/03/20 04:21:55 reyk Exp $ */ +/* $OpenBSD: ar5212.c,v 1.11 2005/03/23 16:23:18 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -411,7 +411,7 @@ ar5k_ar5212_detach(hal) struct ath_hal *hal; { if (hal->ah_rf_banks != NULL) - free(hal, M_DEVBUF); + free(hal->ah_rf_banks, M_DEVBUF); /* * Free HAL structure, assume interrupts are down |