Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3919902ybz; Tue, 28 Apr 2020 02:38:41 -0700 (PDT) X-Google-Smtp-Source: APiQypI/heiJZalwiCNG/5akb4P014HoRnRjw8ZDzMZpar+KyuCGmIslJbH45sEEEU3Ov9Hnhsx/ X-Received: by 2002:aa7:c7cb:: with SMTP id o11mr13373792eds.380.1588066721374; Tue, 28 Apr 2020 02:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588066721; cv=none; d=google.com; s=arc-20160816; b=RTXTbiUjfi8UIKfx4iI6QUOTK6My3rCuze6CnEtFZuw4lYtDMWvvw1n1VBoJl0QaIJ Fe/465TN4BvZXxenaPMePntWzHRKJnbL5OMp4aY+SwxFM8D5nuYb1JddkIa8/Ju59gz3 4GAo7kR4Z2YPx9HVvmr9LIAzv3E1riHz6FyAkyoNYwXurIygDBNXO/+YE8c/JkGnX3RA WlnuZQCAbdfd07RYQKtA2kEUAGz5X7DeZ6Glwvzsq1li4Tgo+RPBk89rlg0MwxL7SRWA NZuLZ58uqYA5hCnB+aodFIu3Zf+eoF6P1lOwOA/xH0s/Xm/nBLsAvfK4XU7K6//BXQSQ 8Mew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=xLR8i4SqwknxFn8hmp8K1ZcwLGAGpiGUyaPHIHkT/jU=; b=Td7nhGR5CHJWO4JBLv9ad1zCxekhnOnuKV+wz4TSfuzSap0NduA0Aqv2t75knr3mcR 1eRZ0NkT8pLUUrjWFFJNyznYXykm46WqD9CjXz81dlyVIorOtO1v8n55Hkx6w6RBI0aY nUrkQ7v0iaMB+niuyfo7cGOSn9bfZFdO55uKVbbdHwKmfpcX0U6LfgflBezTB12B4wCL 4+bkBfmiXpcPThFKe02Kdud3NxGJMIVoHxjD87XNwjCFxvcUUNvpEFotuHWvUn1s+H4W lVIIW2cj8Lg8HVuWIK8uD57KwafPb2EuOz8HMgrsXfUl1GD0GEMMjR6DE4eCmbSeYdTg LjEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=urCJg8Px; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si1330985edz.401.2020.04.28.02.38.17; Tue, 28 Apr 2020 02:38:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=urCJg8Px; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727049AbgD1JiI (ORCPT + 99 others); Tue, 28 Apr 2020 05:38:08 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:64451 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727032AbgD1JiI (ORCPT ); Tue, 28 Apr 2020 05:38:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588066688; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=xLR8i4SqwknxFn8hmp8K1ZcwLGAGpiGUyaPHIHkT/jU=; b=urCJg8Px8McYn7Ej/QDhK/dG057ZsJJ0quwvFWV6blaA9pEnudwNopEALxrrpdion5Ricz01 463x9qWcLw/qB4xZK0BA8pTNa4/5PbZBg8qCgUYlDnIbuNvDhSh5T3FJZmzq9aLa0aBr/ZoR 5MJGt/0J/TeQmRbWPRvhX1qQCsY= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5ea7f96f.7fa92c8d5730-smtp-out-n02; Tue, 28 Apr 2020 09:37:51 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8035EC433F2; Tue, 28 Apr 2020 09:37:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 85CC3C433D2; Tue, 28 Apr 2020 09:37:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 85CC3C433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Wei Yongjun Cc: Wen Gong , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org, ath10k@lists.infradead.org Subject: Re: [PATCH net-next] ath10k: fix possible memory leak in ath10k_bmi_lz_data_large() References: <20200427104348.13570-1-weiyongjun1@huawei.com> Date: Tue, 28 Apr 2020 12:37:47 +0300 In-Reply-To: <20200427104348.13570-1-weiyongjun1@huawei.com> (Wei Yongjun's message of "Mon, 27 Apr 2020 10:43:48 +0000") Message-ID: <87ftcoeys4.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Wei Yongjun writes: > 'cmd' is malloced in ath10k_bmi_lz_data_large() and should be freed > before leaving from the error handling cases, otherwise it will cause > memory leak. > > Fixes: d58f466a5dee ("ath10k: add large size for BMI download data for SDIO") > Signed-off-by: Wei Yongjun > --- > drivers/net/wireless/ath/ath10k/bmi.c | 1 + > 1 file changed, 1 insertion(+) Please don't add "net-next" to wireless-driver patches (ath10k, ath11k etc), because we use different trees. You can add "-next" or "wireless-driver-next" if you want, but even that is not necessary as I apply patches to -next by default. -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches