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: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-wifi.git;a=commitdiff_plain;h=bf0d4180c30ef6b590c03939712307329873ad42 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 c0cdcd0..fcae4bc 100644 --- a/drivers/net/wireless/wl12xx/wl1251_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1251_cmd.c @@ -264,7 +264,7 @@ int wl1251_cmd_data_path_tx(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",