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/8d95bd1888cf
branches: trunk
changeset: 371185:8d95bd1888cf
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 7168a4d245a1 -r 8d95bd1888cf 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 @@
#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