Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp590125pxb; Wed, 3 Mar 2021 10:11:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJziUIXInGXSrSw/jR6Y4LhFc+WWL7UabQgMAfiuPgqkthqupJNOdy2huEaRStiO55qH1k3M X-Received: by 2002:a17:906:2816:: with SMTP id r22mr115405ejc.2.1614795071544; Wed, 03 Mar 2021 10:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614795071; cv=none; d=google.com; s=arc-20160816; b=R8M9fgDupckqIoC9vPh15pKVpFRcT+BAJKk40LRCQqAArbxNM8lDbsFth3qk6/dBd9 Uy8FGzHjKP+yBGEdXtPlqOelUn8lc64Mq/wnuxkkONLC1zquEAGT9b6d9PAwp8CLxSW/ 2prkCcFQhCIM/TD1dmfIszlgrUK1EBVxOAnoxKPrgKhY1W1kxnduUpRKk9AEbZk53+do gmiSAyWSQuObUimCnK97kIu2Sq4TmaEnLx1g9jNvGbYoF5QJPTMF90XJyU5bhk0nESax bLJT2qA0hR+0X7Y1IQyKLtrhJanycAEJWzSFkCO99HOF7yjFuMGiHqyh7ivzYmtRpQ2V 2Tbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LzFQvphRVK5Sxi15kP88Sk1Wun/RPeUW1AvIpX/Her8=; b=SBrmHM6ChdcW3pBCVsRVp10NSm9H99NNruzZUypgyje894ly9X1xhUtv7qKJ7w5uoH e6s7FmljZOobiU2L1S6zkmFAsUg4DR2nq49x+TB80IuwFWl6XJh7MVmjn4uvWAIHRzY1 yS279mf/0ECLAMS/VPReuMMCrVZQo2h6bIGyQRNBqV2BGm9jg8Rfi6FWT/Y5eEzWC8+O TkgSovbwdN/T7pZAYX2XpmuhCOMRt8ETrL2tQJ/ZkWWOM5NH3HorgIDOENHvQfmrUyDT W8r2knBUrh6JfOCgA9j1pnJkKKkHY3UUAk3cRaC4wJfOMPKsNJNcSEgSQyqdQTdPZrBq 2TmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xi638AWm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pk25si16087630ejb.402.2021.03.03.10.09.41; Wed, 03 Mar 2021 10:11:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xi638AWm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348400AbhCBBCU (ORCPT + 99 others); Mon, 1 Mar 2021 20:02:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:58454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235301AbhCASwW (ORCPT ); Mon, 1 Mar 2021 13:52:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A880F64F6F; Mon, 1 Mar 2021 16:38:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616698; bh=Tp9ltggiwRXSTkfIIdqdimmKElWMdtXYYiy69l9Sk/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xi638AWm4rQCJwXd13+qanklooGqMJW2YErfJRIjZf/yCu3jZ8vijnUySawIHbMsm J+goPRw5N815noPA08r8dPUh9sQWaX4cJrGk/ZDlHOaq9+CKgj4eRhIfM9LejIe4A8 W8TveFYhZ24NkJVGqNJtIiMzSKCbsfTxy4d7pVNY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rakesh Pillai , Brian Norris , Kalle Valo , Sasha Levin Subject: [PATCH 4.19 024/247] ath10k: Fix error handling in case of CE pipe init failure Date: Mon, 1 Mar 2021 17:10:44 +0100 Message-Id: <20210301161032.883252534@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rakesh Pillai [ Upstream commit 31561e8557cd1eeba5806ac9ce820f8323b2201b ] Currently if the copy engine pipe init fails for snoc based chipsets, the rri is not freed. Fix this error handling for copy engine pipe init failure. Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1 Fixes: 4945af5b264f ("ath10k: enable SRRI/DRRI support on ddr for WCN3990") Signed-off-by: Rakesh Pillai Reviewed-by: Brian Norris Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/1607713210-18320-1-git-send-email-pillair@codeaurora.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/snoc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index e2d78f77edb70..241e6f0e1dfe2 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -789,13 +789,14 @@ static int ath10k_snoc_hif_power_up(struct ath10k *ar) ret = ath10k_snoc_init_pipes(ar); if (ret) { ath10k_err(ar, "failed to initialize CE: %d\n", ret); - goto err_wlan_enable; + goto err_free_rri; } napi_enable(&ar->napi); return 0; -err_wlan_enable: +err_free_rri: + ath10k_ce_free_rri(ar); ath10k_snoc_wlan_disable(ar); return ret; -- 2.27.0