lkml.org 
[lkml]   [2007]   [Dec]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 3 Dec 2007 13:50:38 +0300
From"Cyrill Gorcunov" <>
Subject[PATCH] NET: mac80211 - fix missed mutex unlock
This patch does fix missed mutex unlock. Please see it attached.
(Can't send it as a plain text patch - have only IE based mail access)

Cyrill
From: Cyrill Gorcunov <gorcunov@gmail.com>
Date: Mon, 3 Dec 2007 13:36:58 +0300
Subject: [PATCH] NET: mac80211 - fix missed mutex unlock

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 net/mac80211/ieee80211_rate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c
index 7254bd6..3260a4a 100644
--- a/net/mac80211/ieee80211_rate.c
+++ b/net/mac80211/ieee80211_rate.c
@@ -33,6 +33,7 @@ int ieee80211_rate_control_register(struct rate_control_ops *ops)
 		if (!strcmp(alg->ops->name, ops->name)) {
 			/* don't register an algorithm twice */
 			WARN_ON(1);
+			mutex_unlock(&rate_ctrl_mutex);
 			return -EALREADY;
 		}
 	}
-- 
1.5.3.5.1481.g9dcf
\
 
 \ /
  Last update: 2007-12-03 11:53    [from the cache]
©2003-2008