Message ID | 20190409190851.4557-6-erik.stromdahl@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 61F6C17E6 for <patchwork-ath10k@patchwork.kernel.org>; Tue, 9 Apr 2019 19:13:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 498352880D for <patchwork-ath10k@patchwork.kernel.org>; Tue, 9 Apr 2019 19:13:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C5ED28938; Tue, 9 Apr 2019 19:13:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ED4492880D for <patchwork-ath10k@patchwork.kernel.org>; Tue, 9 Apr 2019 19:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bhq2krn8ygkPgfPVwUCwQtkAm/1vCt/t1T20/1Uq2VU=; b=oL52J3FqQ3JUh3 CBDEE0+E91nLt0FLBVcCgDcnQTNlwwy+//Ii/CeUPFrHw/9oUzHLUd4pqiDUM+/nzHTqjzib2k5JV 7ww/81E8crNV/co5heFAjp0I3eHLL74Sr2uYjn1rnTqOx3BeL2wKtlTLv2OrgbmNThECjeLulKVS/ TGpld7M/iXNQlYSQNyKWx+8AexnTgptRiXSoieHKjO7QPD4jehTolKwQygcdXFtE5ni3Mx00ft/7a GVjrZfucLVxTet6PDe5Pv42aoBB6zAYMCiL7YSPc4k9HmbgmD0zj3SaSHxqAFQ6Z9Woqi3T1LgYN2 uJvXclQbecBg5OM1+J2A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDwBR-00024t-Vj; Tue, 09 Apr 2019 19:13:25 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDwBF-0001mI-H7 for ath10k@lists.infradead.org; Tue, 09 Apr 2019 19:13:15 +0000 Received: by mail-lj1-x244.google.com with SMTP id j89so15536992ljb.1 for <ath10k@lists.infradead.org>; Tue, 09 Apr 2019 12:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3jf7/3Wcpi0foIcFTrOIi7geeJuAbQU85kMpO8kay/o=; b=rAnTJJIUQ9lxjUTBnu3mbOvLRNJ7une05H3PUjGOLeXnVdcW091vW6AEz13kU64D5n C3TFZZjuGMazpeB65t9DE4htgAFSrQczvyG3PtRGF67jzpo0OJkFsMh+lASn2P6dhH1G s2gIyq8VG7CEPc6I6GOHc2NT5kPl+41INmdid/KcaM7llEHooQ7enZlJI13uiqGdaJGb 4Ao8868JjNZPk4p01BEv0a5VB/KErYMF53i2F1M0bYSRf8vhEQ68VRaDlmntl7p52rqC OT3/RCj3NO71fUSycwNwJRomD9MFjAzhlZoXZWFNT/b4aMI8hHGFWbFidDQIBvRq2Xpc 2AGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3jf7/3Wcpi0foIcFTrOIi7geeJuAbQU85kMpO8kay/o=; b=SUKhglgNWFv/uosdQerWI4py10SxR1LArmBG2AjKrG1yDOOuIooODR6Fs39iyZCDDQ 21IpCr5clS4Bqm+581eq6GZKB7tmaM6sbabo+0+0RzWwMll0SHdRWcX2dzdmN0lxgwcG 1kCfLCzWjPNGSN00hsCf9F8NmBtlloJB/igapfCyWU8DEnbFJFgwA55clKvUWctbjsPT alppMJ0j5hoWVqTupM5RI3VC5zXT1TxyGC43itd8qeb8c9E2Ef5mEB4d/1/F2dHA+A38 SN7CMHC24R/4gFtLuRI6VNFmiJFMN1xFQdBUlaQwxbiFvUVV4Z2mxzdIyq++CxkVVEBB +kHg== X-Gm-Message-State: APjAAAUldEj9I6dTJfxQGpFfQKW8EpzKAeeKkSeMDQLYzfJs3OUA6QuL KkjHVTKHursa4dREc4tFHpM= X-Google-Smtp-Source: APXvYqzseMVHi/zp2dLhKoFEYoelUgs68BX8p1VKuSrL/qFlGOzWDIE/FmiHVhECZY05srrr6gZpQw== X-Received: by 2002:a2e:2e04:: with SMTP id u4mr11410205lju.37.1554837192057; Tue, 09 Apr 2019 12:13:12 -0700 (PDT) Received: from localhost.localdomain (81-233-89-221-no75.tbcn.telia.com. [81.233.89.221]) by smtp.gmail.com with ESMTPSA id q64sm6807848ljq.76.2019.04.09.12.13.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 12:13:11 -0700 (PDT) From: Erik Stromdahl <erik.stromdahl@gmail.com> To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [PATCH 5/6] ath10k: sdio: add missing error check Date: Tue, 9 Apr 2019 21:08:50 +0200 Message-Id: <20190409190851.4557-6-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190409190851.4557-1-erik.stromdahl@gmail.com> References: <20190409190851.4557-1-erik.stromdahl@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190409_121313_811733_42856F0E X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <ath10k.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/ath10k>, <mailto:ath10k-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/ath10k/> List-Post: <mailto:ath10k@lists.infradead.org> List-Help: <mailto:ath10k-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/ath10k>, <mailto:ath10k-request@lists.infradead.org?subject=subscribe> Cc: Erik Stromdahl <erik.stromdahl@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" <ath10k-bounces@lists.infradead.org> Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
ath10k: SDIO and high latency patches from Silex
|
expand
|
diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c index 295e1e7ec3b0..3eb241cb8a25 100644 --- a/drivers/net/wireless/ath/ath10k/sdio.c +++ b/drivers/net/wireless/ath/ath10k/sdio.c @@ -586,6 +586,11 @@ static int ath10k_sdio_mbox_rx_alloc(struct ath10k *ar, act_len, &bndl_cnt); + if (ret) { + ath10k_warn(ar, "alloc_bundle error %d\n", ret); + goto err; + } + n_lookaheads += bndl_cnt; i += bndl_cnt; /*Next buffer will be the last in the bundle */
Although not likely, the bundle allocation might fail. Add proper error check and warning print. Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com> --- drivers/net/wireless/ath/ath10k/sdio.c | 5 +++++ 1 file changed, 5 insertions(+)