mac80211: fix memory leak
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 May 2015 09:31:47 +0000 (11:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 May 2015 09:37:38 +0000 (11:37 +0200)
commit94c78cb4523c246ec37959436f04e7c946f7494b
tree7ecdc49abe145736cb9123e73c3756f1b6d4bfb3
parent658358cec93a7130615cfc1d6843ab07e49625e6
mac80211: fix memory leak

My recent change here introduced a possible memory leak if the
driver registers an invalid cipher schemes. This won't really
happen in practice, but fix the leak nonetheless.

Fixes: e3a55b5399d55 ("mac80211: validate cipher scheme PN length better")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c