Skip to content

Commit

Permalink
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c: add missing fr…
Browse files Browse the repository at this point in the history
…ee_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>
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Apr 24, 2012
1 parent bb75f7d commit 89f5e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 89f5e71

Please sign in to comment.