nl80211: Do not add interface to the global list in case of failure
authorJohannes Berg <johannes.berg@intel.com>
Tue, 22 Mar 2011 13:52:04 +0000 (15:52 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 22 Mar 2011 13:52:04 +0000 (15:52 +0200)
commitc4bb88174369f4700833d887de60697d2ea0e15e
treea1e2517c817b0afdcdabb42e229f3fdc7bb19aa7
parentcd9fc7869aa1e3935c028d4032d15c75e9946410
nl80211: Do not add interface to the global list in case of failure

This avoids leaving a freed interface on the global list in case
driver initialization fails.
src/drivers/driver_nl80211.c