diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-04-22 14:02:13 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-24 11:28:25 -0700 |
commit | 89f5e7102a56bcd1b5b0691085d0839e92b3ca04 (patch) | |
tree | dfbab6964affa97f18090e0e329915df3107cf1d | |
parent | bb75f7dc948eb92b1d0612b4ddba23d2ecd553c5 (diff) | |
download | linux-3.10-89f5e7102a56bcd1b5b0691085d0839e92b3ca04.tar.gz linux-3.10-89f5e7102a56bcd1b5b0691085d0839e92b3ca04.tar.bz2 linux-3.10-89f5e7102a56bcd1b5b0691085d0839e92b3ca04.zip |
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c: add missing free_netdev
Free dev on failure as done elsewhere in the function.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c index e3d47bcf4ca..82d4bf6a86a 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c @@ -161,7 +161,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv) if (ieee->pHTInfo == NULL) { IEEE80211_DEBUG(IEEE80211_DL_ERR, "can't alloc memory for HTInfo\n"); - return NULL; + goto failed; } HTUpdateDefaultSetting(ieee); HTInitializeHTInfo(ieee); //may move to other place. |