]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix memory leak in monitor flags parsing
authorJohannes Berg <johannes.berg@intel.com>
Tue, 24 Feb 2015 09:56:42 +0000 (10:56 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Feb 2015 09:56:42 +0000 (10:56 +0100)
commitff08536cff7a6086ad32b6c53d314beb45fde5e5
tree39ce8be8e1854e89835e80e167100e0f364ace98
parentc4b5f6dd02b00e9395789550c65b4529f2a7ea11
nl80211: fix memory leak in monitor flags parsing

If monitor flags parsing results in active monitor but that
isn't supported, the already allocated message is leaked.
Fix this by moving the allocation after this check.

Reported-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c