]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: handle drv_add_interface failures properly during reconfig
authorLuciano Coelho <luciano.coelho@intel.com>
Sun, 1 Mar 2015 07:10:04 +0000 (09:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Mar 2015 14:56:09 +0000 (15:56 +0100)
commitf42cc0e8a7d793eec2279ec482c61e562a3e51e2
treeef86e843cb03fa92654f000b7b7f85e70ac8b023
parent8ddcc6c886775c05bd5c19072968a6569264cedd
mac80211: handle drv_add_interface failures properly during reconfig

If any interface fails to be added to the driver in during reconfig,
we should remove all the successfully added interfaces and report
reconfig failure, so things can be cleaned up properly.  Failing to do
so can lead to subsequent failures and leave the drivers in a messed
up state.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c