From patchwork Fri Nov 8 17:34:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Krasnikov X-Patchwork-Id: 3159121 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9F7829F489 for ; Fri, 8 Nov 2013 17:35:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47CA620490 for ; Fri, 8 Nov 2013 17:35:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F4222047B for ; Fri, 8 Nov 2013 17:35:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757771Ab3KHRfC (ORCPT ); Fri, 8 Nov 2013 12:35:02 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:59086 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757362Ab3KHRfA (ORCPT ); Fri, 8 Nov 2013 12:35:00 -0500 Received: by mail-wg0-f41.google.com with SMTP id b13so24489wgh.4 for ; Fri, 08 Nov 2013 09:34:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M01iIeB5orcUSv+2rOY3YJa71vrLI94YUobtcR/JP3M=; b=bogDsW4G+lyr6cEL4ckvp/xsmOFpqbiISd4CoUPKIUh62yqnb3mIs8fz51EKZ/Llvt IKpI2o/tv+9reOUIkacosVtm4tNXB8DIYQntS0IGgM56+jd1+EEy2GbJzaRerGE8bsk2 F79TCruBD+Y4PySabYPEGgcijZNlfhwZuJs4B9CH1t4rMk0AMnvOgrLqrWQUgWC45Bse 5oUs/Dy4OJWOuwiF9w2BemfJ4sUY1oqO/knc/XasSPdBTS0ZfkVDedk2Sm9wGzyJSMxW FT9r6EK3Q6MdVq9A2WAEt+rBKXUI4l1KKMTLuyGMxpG53+f/uX5Zcmd3mWpJC7BzeSzt YnGg== X-Received: by 10.194.89.233 with SMTP id br9mr12914742wjb.15.1383932099501; Fri, 08 Nov 2013 09:34:59 -0800 (PST) Received: from localhost.localdomain (188.29.165.125.threembb.co.uk. [188.29.165.125]) by mx.google.com with ESMTPSA id w10sm7485105wia.4.2013.11.08.09.34.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Nov 2013 09:34:58 -0800 (PST) From: Eugene Krasnikov To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, wcn36xx@lists.infradead.org, Wei Yongjun Subject: [PATCH 1/3] Add the missing unlock before return from function wcn36xx_smd_update_proberesp_tmpl() in the error handling case. Date: Fri, 8 Nov 2013 17:34:37 +0000 Message-Id: <1383932079-3791-2-git-send-email-k.eugene.e@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1383932079-3791-1-git-send-email-k.eugene.e@gmail.com> References: <1383932079-3791-1-git-send-email-k.eugene.e@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Signed-off-by: Wei Yongjun --- drivers/net/wireless/ath/wcn36xx/smd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index f8c3a10..04df70b 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1327,7 +1327,8 @@ int wcn36xx_smd_update_proberesp_tmpl(struct wcn36xx *wcn, if (skb->len > BEACON_TEMPLATE_SIZE) { wcn36xx_warn("probe response template is too big: %d\n", skb->len); - return -E2BIG; + ret = -E2BIG; + goto out; } msg.probe_resp_template_len = skb->len;