Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2940066lqz; Wed, 3 Apr 2024 13:03:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJrbvCH8RVsu99KRxY7jdcrDvhuQOo8QztB03Y9R/3+EoCTP1ZCSM5tQfPk4mueOMk/sT3jspxaSgVsRQZ/MnuQtD6eyfUxos6wXWtcA== X-Google-Smtp-Source: AGHT+IHsTsC/LQUmHsjaZGjyVEnnCAPU8R56XCuLmDr/ZaAPM6phTc2VnpIrJO/nX4WqBfGPyFor X-Received: by 2002:a17:907:b9cc:b0:a4e:114e:25cb with SMTP id xa12-20020a170907b9cc00b00a4e114e25cbmr219101ejc.53.1712174604815; Wed, 03 Apr 2024 13:03:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712174604; cv=pass; d=google.com; s=arc-20160816; b=t1HnlDTbBiwC82weykgiQyF54uGDsp6gzTEQX7MRkxVvKRqIX6x0dwyPrMbZrUI++k DseNzo5oxpwCX3yenNCEUigXJnI6wWhiipqXzNHsnRIhwhoK408VX/hetEgJIOl361qF iqSQBonVugRCn33z724Z0a2NYFhXExiHu9wvP3p5T1Cl/GSS/2sLUI43yRqP/P8Wf3iI ZSXE+cAuLOEkFWev277fuTlXxPqWfAgt3fYlKHbR5MYhPaWY2vuNho4+57ITztzDuCbU GZN3Yk3Y+gBcStZjiNhqGnqUhSnHdxFru/2osLxDNCFIiUUavatA6wtFRFDWmOvneGui nAlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=I1ufl5RkKe6Pmb+VcHSrHzHTsWuFN9cknv4Q4uc0+Pk=; fh=Vg7un74Kjd9IqloiGonVFEwEy4qdLAWR8AwluAPyMKk=; b=oih+4NMzF58H8/LYG04pDw5OuiLeBUiGsTeSrBgeyis+cbgpn6NdLcZKs1VR9bck5N KifGgogYPNRRO+dp/I2ZdQDVDMrwxtsSE+cUAldKHXU6yFyl6n/8ZRIVP7SvsL88MWaK FhrHaGCdOwaQPD97fo4AmCWUNDlvgbiDQTMi2wTTHakPiUiUOQ6Lo9HnnpqGCVReLIFO b4ba26eh7J+t/vZbHarVNmy6Ynl52yAAB8nUVEoyr+X2CM03JQLhlv71KmH8tia1aYMu MEC/rW7EcHS/idobJdcMQ+9bQhVRR9wcrkKSBV5mj5a4mkLf4jyrjhjp08+eNhamWkP4 qpRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=haTSTDJl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bw2-20020a170907928200b00a4aaa3b800csi7153922ejc.949.2024.04.03.13.03.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 13:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=haTSTDJl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id C6DA11F2791B for ; Wed, 3 Apr 2024 20:03:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26A12154BE8; Wed, 3 Apr 2024 20:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="haTSTDJl" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 A2DEC1553AE for ; Wed, 3 Apr 2024 20:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712174590; cv=none; b=QL3QVrBhYUvrIBvMvi9zRi3wwT9oPKm0xtU2rWbIfGvMjMaoh3QLfbLhUDBeri/RRgbOPiwq6FSbjzMsn2JUr6ZRG9x0yhadVN7qGWnt2UCIRqESKkc87Sg1jC5+pNe2PXBCOc8rTMEq1mdxMB0ieO1Oplr9YQPDEleVg89SUpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712174590; c=relaxed/simple; bh=I1ufl5RkKe6Pmb+VcHSrHzHTsWuFN9cknv4Q4uc0+Pk=; h=Message-ID:Date:MIME-Version:Subject:From:To:References: In-Reply-To:Content-Type; b=faskfwSl99sDWWJNaZ2kIiq/mpyOA/btRiY6CHsjr6xRVOc49B3t21rzhn4WQvikTspNqBFl1jYL2PAFjbGRAduwWisF/G8BGMljSZo+DS93h4tAh0kFEq6i9GCleujZeI+d7Ua9AEUEqG9RDqBHPR5GdzirEc1SlDQZd9rIhcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=haTSTDJl; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 433Jr1Ca030762; Wed, 3 Apr 2024 20:03:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=I1ufl5RkKe6Pmb+VcHSrHzHTsWuFN9cknv4Q4uc0+Pk=; b=ha TSTDJl3vP1pIgxcNpp0DL4IBzeTR+ATBES3FbdVk2N4sNjNqajNjUNzJKgzBhW74 GESMFyqwqKK8+WZ2SfibceS0MUsOUR37EIwHOI4YXhUZQp0vAAWhKUPsSb72Aekz zZRpEMLO8xrLZ9aMlz0gEJL8MvjF2YmpiU6JMb7jLgXE7qXek22f6vvf5LPiQXeP hH3TtU0/smDnx42/BotzvsSndTKFMRjR0Db/DsSrgiy/Qe17gqUhJYn2116Hm1Ge OFovMOxa+aOdChyF5RPeuJ6Cjx9bDNRIX1Mwy10YNqeej4z5vrqGFUX0si9XaTix nld1B5ZfWuGZbl+91xxg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x93a5hrnh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 03 Apr 2024 20:03:05 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 433K33cI023275 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 3 Apr 2024 20:03:03 GMT Received: from [10.227.110.203] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 3 Apr 2024 13:03:03 -0700 Message-ID: <95e07dfc-d7ea-42a9-9354-7e1e2d5fffb1@quicinc.com> Date: Wed, 3 Apr 2024 13:03:02 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 11/13] wifi: mt76: mt7915: add fallback in case of missing precal data Content-Language: en-US From: Jeff Johnson To: Felix Fietkau , References: <20240403103032.54823-1-nbd@nbd.name> <20240403103032.54823-11-nbd@nbd.name> <335bba80-addd-4443-b67e-d3de114b91ba@quicinc.com> In-Reply-To: <335bba80-addd-4443-b67e-d3de114b91ba@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: nGIvNYpmjbIyJADOdg2j711r1Myv6I76 X-Proofpoint-ORIG-GUID: nGIvNYpmjbIyJADOdg2j711r1Myv6I76 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-03_21,2024-04-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 mlxlogscore=808 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2404030135 On 4/3/2024 12:51 PM, Jeff Johnson wrote: > if you are going to devm_kfree the memory for this case, why not also for the > mt76_get_of_data_from_mtd() failure case? ignore that comment -- obviously that was the success case and the failure ace comes here