Commit:     20880e8936e467fe30d79aa838c8d24b7073648f
Parent:     3333590e94262aebb5d0fb767cc7ed8b2359705c
Author:     Cyrill Gorcunov <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 13 16:17:03 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Dec 19 16:43:47 2007 -0800

    NET: mac80211: fix inappropriate memory freeing
    Fix inappropriate memory freeing in case of requested rate_control_ops was
    not found.  In this case the list head entity is going to be accidentally
    Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]>
    Acked-by: Michael Wu <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 net/mac80211/ieee80211_rate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/ieee80211_rate.c b/net/mac80211/ieee80211_rate.c
index 3260a4a..c3f2783 100644
--- a/net/mac80211/ieee80211_rate.c
+++ b/net/mac80211/ieee80211_rate.c
@@ -60,11 +60,11 @@ void ieee80211_rate_control_unregister(struct 
rate_control_ops *ops)
        list_for_each_entry(alg, &rate_ctrl_algs, list) {
                if (alg->ops == ops) {
+                       kfree(alg);
-       kfree(alg);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to