Files
linux/net/wireless
Johannes Berg 2811d3a0cf nl80211: fix per-station group key get/del and memory leak
commit 0fa7b39131 upstream.

In case userspace attempts to obtain key information for or delete a
unicast key, this is currently erroneously rejected unless the driver
sets the WIPHY_FLAG_IBSS_RSN flag. Apparently enough drivers do so it
was never noticed.

Fix that, and while at it fix a potential memory leak: the error path
in the get_key() function was placed after allocating a message but
didn't free it - move it to a better place. Luckily admin permissions
are needed to call this operation.

Fixes: e31b82136d ("cfg80211/mac80211: allow per-station GTKs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-02-05 22:35:36 -08:00
..
2013-08-20 08:43:03 -07:00
2012-11-16 14:29:09 -05:00
2012-10-18 10:53:37 +02:00
2013-03-06 16:36:11 +01:00
2012-10-18 10:53:37 +02:00
2014-08-07 14:30:25 -07:00
2012-12-07 11:58:26 +01:00