NET: mac80211: fix inappropriate memory freeing
commit20880e8936e467fe30d79aa838c8d24b7073648f
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 14 Dec 2007 00:17:03 +0000 (13 16:17 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 20 Dec 2007 00:43:47 +0000 (19 16:43 -0800)
treea4f0b2de724ee3610414459b1072149cd2386598
parent3333590e94262aebb5d0fb767cc7ed8b2359705c
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
wasted.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_rate.c