Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/net80211 Fix stupid mistake in previous, fix mutex...
details: https://anonhg.NetBSD.org/src-all/rev/6487a4cfd703
branches: trunk
changeset: 378044:6487a4cfd703
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Tue Sep 27 17:03:05 2022 +0200
description:
Fix stupid mistake in previous, fix mutex destruction for the IC lock.
Mistakenly not reverted change from an experiment that did not work out.
diffstat:
sys/net80211/ieee80211_netbsd.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d82fd295f534 -r 6487a4cfd703 sys/net80211/ieee80211_netbsd.h
--- a/sys/net80211/ieee80211_netbsd.h Wed Sep 21 17:26:42 2022 +0200
+++ b/sys/net80211/ieee80211_netbsd.h Tue Sep 27 17:03:05 2022 +0200
@@ -227,7 +227,7 @@ typedef kmutex_t ieee80211_com_lock_t;
#define IEEE80211_LOCK_INIT(_ic, _name) \
mutex_init(&(_ic)->ic_comlock, MUTEX_DEFAULT, IPL_SOFTNET)
#define IEEE80211_LOCK_OBJ(_ic) (&(_ic)->ic_comlock)
-#define IEEE80211_LOCK_DESTROY(_ic) mutex_obj_free(IEEE80211_LOCK_OBJ(_ic))
+#define IEEE80211_LOCK_DESTROY(_ic) mutex_destroy(IEEE80211_LOCK_OBJ(_ic))
#define IEEE80211_LOCK(_ic) \
mutex_enter(IEEE80211_LOCK_OBJ(_ic))
#define IEEE80211_UNLOCK(_ic) mutex_exit(IEEE80211_LOCK_OBJ(_ic))
Home |
Main Index |
Thread Index |
Old Index