Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp57209lqt; Thu, 18 Apr 2024 08:20:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2xdH6X7yu1zQabaVOCSFw2oH5doKv5GxWvmiDgG4P05wrmGHpJ1h3DjMfJdwnU9mk+PKMICNaynHBopESM01vt9u6/UfY9ota1NCddQ== X-Google-Smtp-Source: AGHT+IGCNsUkW77DZAS3R0GUUDI4BR5hsdecPxCiBUo1DvgTLMttbCAzB6mSoqoJfWBMmiXbUDUK X-Received: by 2002:a05:6871:e01a:b0:234:56b0:2e8d with SMTP id by26-20020a056871e01a00b0023456b02e8dmr4050499oac.6.1713453648522; Thu, 18 Apr 2024 08:20:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713453648; cv=pass; d=google.com; s=arc-20160816; b=jP9zmnhetMxrUbmCYlhGNZ0GhLpkh7eJJTCv2WMpxP+xj/JkxtB4+BEQrMFPrjcwAX d6rsUJKa7Sp/SIhrDM0W0D5T0Bgnf6hdTyEPJeduNDy464dQK1Qy38hUCmguRi8j/pkM os6t5jTkqYwNyAWxbw/w57vN2lj8W/BOMzyPcmKU2kZgqBmnrd+5ZoCxSuN2ifl+znVA F0jGtYFfukUwecX32tvgNwBgtlokXxfc+fG1x3MTFpnue81msF4m07d2ACiSpYhqd2LQ R4/H0pvypiHYDZfYtp+2+H8xMhx7EgCDvlaQ7ZXxou6ztpA5gQjc+m5GloWGhglbZVgm uNvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=uu5NcEhrU4CSSet1mXIeV842xnMMRGVefdneBBvr/3E=; fh=//qGoReVBpdrNxrgkUiM25x+1e3s1yBx4LuRbEsmrxQ=; b=PMLoVFp/bNV/yc2kBCXgRhQUCiAULj9FlcMzeqKY1qwhx2zVbTg2dAK0Nx8ynpZhsU 1/SdZVUxCMpYUA4nRfpRTbs1v0nCObuMmnj4/bRo/LqrmnOnQNgBv8hTvhujhrAw+83O KySmQdkNUmEibU2WgWnb/5vfaOb9eWX90wy+9aMxeVmRhtSQSkNKLI1XVJjUc3ibYPpp jxuZcodI33Ht7hn3BkcWc/satQEKuO3ubRT5ZJpPmKsufTF1oNlSMMxdCJHMZ6DXFGou o7Yd+DFSTt0yGzwQCre/dmhv5YFDORBlYaJaAMj/2YdbFCHWSq0n4JGbVt1mJyLa4auC 7fdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OIEUZqdX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150375-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bq20-20020a056a02045400b005f401cd20f7si1793660pgb.631.2024.04.18.08.20.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 08:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150375-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OIEUZqdX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150375-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150375-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B377E283B83 for ; Thu, 18 Apr 2024 15:20:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16C4816C6A7; Thu, 18 Apr 2024 15:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OIEUZqdX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 330BE6FC3; Thu, 18 Apr 2024 15:20:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713453635; cv=none; b=j/3TdAPC9pAUAQ/WIjZgpoybW+z0g+TgtqtSwy+B+VRMk/1fgy7ICfvt7s1H6cwv9yZtcnRqKCHa6OctFZmE8ssBMzJO7XkE9j7f7lVM1gMHJVnr0icZF02TmC4QDxWahWQmzNtjWNp7Orj7Tk/EuywLZ/RTfEJDUF0De81yWXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713453635; c=relaxed/simple; bh=/e1tInGkYUBdYm7yvZRxryugFAXscOsuzj1rVya6Oog=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=Ds1MXgSF5EW/tpzBuwmC8wrixvXzp6WVrMxTtDf81gxNqzLidRghYYqXAPF/Ku1qXxqJeKTi/yaEeyat/8VfHSfHQUwK59zWGpdWkEsCoraJ/g1SFFiUs5XocmETV77mhgSbP6hia41jb0CzV3MQXNm0KpoVWc8N536QQ+egasc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OIEUZqdX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB43BC113CC; Thu, 18 Apr 2024 15:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713453635; bh=/e1tInGkYUBdYm7yvZRxryugFAXscOsuzj1rVya6Oog=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=OIEUZqdXtRzTWFAMtqknhihf1jrgD1+yPT4GM8WDLj0SbbYc83kKI9Rlp78TcqLVk N12Zxn1R1Dut8YqZz5tZO/2+X057JjRZiJSlVMtEcVjMrT8tcdzpsGBXJtpIrG52Vp U/1KK2sWteKaU+cb7FPUPclL5sAWYeVc+GO3OQPx1cgrY2m/GGgidb5iWOvhRH8Zi9 gq6XtMhy5TPBLyLYcld/rpjxVHbSRxCLrGRQx2eBfVg991lQ/yPvybPplhsUXIPiv1 fxKtHpFMuFFsOBAaEOQLDxV2RT11hox8dFUUY82WMIhLVzX/mtWbOOLX+B1Rh6wEjU NF4PWBZNuVO+w== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: ath11k: Fix error handling in ath11k_wmi_p2p_noa_event() From: Kalle Valo In-Reply-To: <07f1fc75b2d5b4173ae1b7bb1da5be7f6fc608c8.1713212781.git.christophe.jaillet@wanadoo.fr> References: <07f1fc75b2d5b4173ae1b7bb1da5be7f6fc608c8.1713212781.git.christophe.jaillet@wanadoo.fr> To: Christophe JAILLET Cc: Jeff Johnson , Kang Yang , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , Jeff Johnson , Kalle Valo , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171345363078.934743.11630888726665265520.kvalo@kernel.org> Date: Thu, 18 Apr 2024 15:20:32 +0000 (UTC) Christophe JAILLET wrote: > if (noa_descriptors > WMI_P2P_MAX_NOA_DESCRIPTORS), there is a mix of > return and goto. In such a case, 'td' should be freed to avoid a memory > leak. > > While at it, change ath11k_wmi_p2p_noa_event() to return void. > '0' was returned in all cases, even in case of error and the only caller > does not handle the return value. > This is also more consistent with most of functions called from > ath11k_wmi_tlv_op_rx(). > > Fixes: 2408379f15a1 ("wifi: ath11k: implement handling of P2P NoA event") > Signed-off-by: Christophe JAILLET > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 6ef5b4c9598c wifi: ath11k: Fix error handling in ath11k_wmi_p2p_noa_event() -- https://patchwork.kernel.org/project/linux-wireless/patch/07f1fc75b2d5b4173ae1b7bb1da5be7f6fc608c8.1713212781.git.christophe.jaillet@wanadoo.fr/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches