From: Yuri Ershov Date: Wed, 27 Oct 2010 10:45:18 +0000 (+0400) Subject: wl1251: Fix memory leak in data path command handling X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059f8c1ea0f31933366cd668c337f55787ebf30c;p=pandora-wifi.git wl1251: Fix memory leak in data path command handling This patch fixes a memory leak in the data path command handling code. Signed-off-by: Yuri Ershov --- diff --git a/drivers/net/wireless/wl12xx/wl1251_cmd.c b/drivers/net/wireless/wl12xx/wl1251_cmd.c index 0b94d3b..5c95c31 100644 --- a/drivers/net/wireless/wl12xx/wl1251_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1251_cmd.c @@ -240,7 +240,7 @@ int wl1251_cmd_data_path(struct wl1251 *wl, u8 channel, bool enable) if (ret < 0) { wl1251_error("tx %s cmd for channel %d failed", enable ? "start" : "stop", channel); - return ret; + goto out; } wl1251_debug(DEBUG_BOOT, "tx %s cmd channel %d",