Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2087995lqo; Mon, 13 May 2024 07:36:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUstFAE4OwVbgIFbQ5GsBytxZc7vZDLQczD7kuCOOFxtKUgI7L2kj77MEjLJ5Ho3ZdwzEJDtWFrC9h2alti/biq+JtIeAuXcVMFko7puQ== X-Google-Smtp-Source: AGHT+IHqrNBdSKeZepQcStJxiprR8KWGyO4kJA975soNUJU3OQ9yzy9g8hGHRVECPOmzw+cSCRRF X-Received: by 2002:a17:90a:4592:b0:2b4:e4d2:c9d5 with SMTP id 98e67ed59e1d1-2b6cc97d19dmr7050721a91.25.1715610963724; Mon, 13 May 2024 07:36:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715610963; cv=pass; d=google.com; s=arc-20160816; b=DqSJ2yHc8TO63NjTadPsmBnp665FvtkhrtzIIgLJeOrZ54GbrZl6ZWq6dshu5I8IHy we4qRKNsgWJVbYBHbyN4RXNmECi2R3knMg+3wBKQzKFoUh6omZph2rg2Be9jUnCfedl3 P2dIlJjRtv49NPAWKZhjIDXXWTfR0Bevhgl5YZDnIXM4GY3TKER/t4Je4henGvI1ewJt sQaQt7sLWVkcu3ouN4Mn+crTR7hWXdrtWNrD1uUvXEfcTQ36Bsy654TIDwGFL6CT7QZ4 r0bjfbu9ej+TDQj3n4Vb2ztzVVfwgHFbGMMfDPKXkRQGW83U7jL5nGOOu5mU9Wp7t9ys Li2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:content-transfer-encoding:subject:cc:to:from:date :dkim-signature; bh=PFnpTfOL55B98whOBYqeX5GtqS8lO3C48yZIUQx7zyc=; fh=CDT+jZa96BwjnestpqgIj8+aWZuCkIrfbosUA0KNyys=; b=VVwqSdS6Yo1Y2F/zdmsJXR4WnGMSAg61HenaceUfQVe0ncGmlUqqx9RncZWvYgNorg hcHzqOw9g0+V8qFe3ON7d/crs4uQ/1d/yhDJcbFOopfBbLxpwW1CKixjz1A4GHISIjwf I+KpL3myjoDAETU0+yJqO1f8Tgpzy19Q6zNZVnERbC0EbHJwr64UzlVbCgDZSASNJGpF Dkw7CyX76Duzpy6kzV3lFJyULhuIDrs/jPnUpw4RbIsxfuqfYrg/WIkdLK63BphyzFw1 hluQbMWvkLo62lC/+9wSZba5BZcMjC1Bot75ypHdCjqJ19+Jm0scObd4kLhm/wDOOo6A mKGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b="Sq//C1p7"; arc=pass (i=1 spf=pass spfdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-wireless+bounces-7599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670e3420bsi9435709a91.7.2024.05.13.07.36.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 07:36:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7599-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=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b="Sq//C1p7"; arc=pass (i=1 spf=pass spfdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-wireless+bounces-7599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 562012833FE for ; Mon, 13 May 2024 14:35:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F023EEC7; Mon, 13 May 2024 14:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=163.com header.i=@163.com header.b="Sq//C1p7" X-Original-To: linux-wireless@vger.kernel.org Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1383DEC0 for ; Mon, 13 May 2024 14:35:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715610924; cv=none; b=gZQkcXVnS45cAz2iTwM+tl9VvyySAd4UpG9ju9hGBJQj7giZ7dX86Qf5C/C0+LwPk9TZfGqBLAc7oysGq+QGcjHKMMIUTmXqben2BfddIXWABnFqRiZHUia+gi8MhhJWApzzEP6qxY18btgvI1xTyHiSOupVUY6wKtLUh3sz+8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715610924; c=relaxed/simple; bh=PFnpTfOL55B98whOBYqeX5GtqS8lO3C48yZIUQx7zyc=; h=Date:From:To:Cc:Subject:Content-Type:MIME-Version:Message-ID; b=iYjqQ28u570TBWPK87vTXjdErndYYAfQUOXt4XbJG3DaEMQCf7mRQfXyqiPmaNau7yEfPzFkaiRtnGRjQqyUJccgwEJtSphkALUi5UZ7AqOK+L7h94x8nx8xka2qgZwbc5DwSto/7rPQf90N9Q2+Ny4qRF7b8FFx5KBu3yAq+Zg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=fail (1024-bit key) header.d=163.com header.i=@163.com header.b=Sq//C1p7 reason="signature verification failed"; arc=none smtp.client-ip=117.135.210.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Content-Type:MIME-Version: Message-ID; bh=9nzg/fErxEjKWjyhShJtIW1S2P310lBM8cdNG0yqw2E=; b=S q//C1p7vO9sEZTIzIOaq5C79zEs67w1lOgXscsJi2RfqBaGaAGTChO1TTrjDwk0i bWm1rtp0gHw2qnFB9fQo4WdclAZpvefL0GX30KgT3oVok01B8IDg+Hc4S0J98bqZ 0ZVOpEWhGclYEweVc9mJIgCJy40l3qa3zUAw7ry9UY= Received: from congei42$163.com ( [159.226.94.118] ) by ajax-webmail-wmsvr-40-139 (Coremail) ; Mon, 13 May 2024 22:34:45 +0800 (CST) Date: Mon, 13 May 2024 22:34:45 +0800 (CST) From: sicong To: nbd@nbd.name, lorenzo@kernel.org, ryder.lee@mediatek.com, shayne.chen@mediatek.com, sean.wang@mediatek.com, kvalo@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com Cc: linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v1] wifi: mt76: mt7615: fix null pointer dereference bug X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20230109(dcb5de15) Copyright (c) 2002-2024 www.mailtech.cn 163com X-NTES-SC: AL_Qu2aB/qav0Aj4yOdYOkfm0YUj+44Wsa4uvgk2YJeOpt4jBHo2yEbXHxAJUH3z96DCxCKmxuUSSZ39+txcKNgZYAKsjYvNC++oOzKkizu8n3qqQ== Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <6206228d.bdee.18f72609cf4.Coremail.congei42@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID:_____wD3f8MFJUJmWPQkAA--.696W X-CM-SenderInfo: 5frqwvrlusqiywtou0bp/1tbizQfd8mV4HLKD6AAKs3 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== RnVuY3Rpb24gbXQ3NjE1X2NvcmVkdW1wX3dvcmsgd2lsbCBjYWxsIHZ6YWxsb2MgdG8gYWxsb2Nh dGUgYSBsYXJnZSBhbW91bnQKb2YgbWVtb3J5IHNwYWNlLCB0aGUgc2l6ZSBvZiB3aGljaCBpcyAx MzAwS0IuIFRoZXJlIHNob3VsZCBiZSBhIG51bGwKcG9pbnRlciBjaGVjayBhZnRlciB2emFsbG9j LiBPdGhlcndpc2UsIHdoZW4gdGhlIG1lbW9yeSBhbGxvY2F0aW9uIGZhaWxzCmFuZCByZXR1cm5z IE5VTEwsIHRoZSBmdW5jdGlvbiB3aWxsIGNhdXNlIGtlcm5lbCBjcmFzaC4KCkZpeGVzOiBkZTc5 MTA5ODQ1OWQgKCJ3aWZpOiBtdDc2OiBtdDc2MTU6IGZpeCBudWxsIHBvaW50ZXIgZGVyZWZlcmVu Y2UgYnVnIikKU2lnbmVkLW9mZi1ieTogU2ljb25nIEh1YW5nIDxjb25nZWk0MkAxNjMuY29tPgot LS0KIGRyaXZlcnMvbmV0L3dpcmVsZXNzL21lZGlhdGVrL210NzYvbXQ3NjE1L21hYy5jIHwgMyAr KysKIDEgZmlsZSBjaGFuZ2VkLCAzIGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9kcml2ZXJz L25ldC93aXJlbGVzcy9tZWRpYXRlay9tdDc2L210NzYxNS9tYWMuYyBiL2RyaXZlcnMvbmV0L3dp cmVsZXNzL21lZGlhdGVrL210NzYvbXQ3NjE1L21hYy5jCmluZGV4IDdiYTc4OTgzNGU4ZC4uMDRl YjUyOTA0NTIwIDEwMDY0NAotLS0gYS9kcml2ZXJzL25ldC93aXJlbGVzcy9tZWRpYXRlay9tdDc2 L210NzYxNS9tYWMuYworKysgYi9kcml2ZXJzL25ldC93aXJlbGVzcy9tZWRpYXRlay9tdDc2L210 NzYxNS9tYWMuYwpAQCAtMjM0MSw2ICsyMzQxLDkgQEAgdm9pZCBtdDc2MTVfY29yZWR1bXBfd29y ayhzdHJ1Y3Qgd29ya19zdHJ1Y3QgKndvcmspCiAJfQogCiAJZHVtcCA9IHZ6YWxsb2MoTVQ3Nl9D T05OQUNfQ09SRURVTVBfU1opOworCWlmKCFkdW1wKQorCQlyZXR1cm47CisKIAlkYXRhID0gZHVt cDsKIAogCXdoaWxlICh0cnVlKSB7Ci0tIAoyLjM0LjE=