aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_cmd.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-03-26 06:53:17 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-31 14:39:13 -0400
commit1b00f2b560028a68cdbc57a0352163afd79822dd (patch)
tree905e14f41424b5ce6ab5bcb79d48f0adc9268fd7 /drivers/net/wireless/wl12xx/wl1271_cmd.c
parent99e50314d588673353bf94978938bd1c2437037d (diff)
wl1271: Fix memory leak in cmd_data_path
Fix a trivial memory leak in cmd_data_path. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_cmd.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c
index dbed0606771f..efd94f2c3168 100644
--- a/drivers/net/wireless/wl12xx/wl1271_cmd.c
+++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c
@@ -454,7 +454,7 @@ int wl1271_cmd_data_path(struct wl1271 *wl, bool enable)
454 if (ret < 0) { 454 if (ret < 0) {
455 wl1271_error("tx %s cmd for channel %d failed", 455 wl1271_error("tx %s cmd for channel %d failed",
456 enable ? "start" : "stop", cmd->channel); 456 enable ? "start" : "stop", cmd->channel);
457 return ret; 457 goto out;
458 } 458 }
459 459
460 wl1271_debug(DEBUG_BOOT, "tx %s cmd channel %d", 460 wl1271_debug(DEBUG_BOOT, "tx %s cmd channel %d",