Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp3264794rdb; Thu, 7 Sep 2023 09:19:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjq+XdcWZ2ErZF9izOU3trbHXN/0I4DBs6I6XY8rMMchSCO5T66PJttlFQ0loX4jz6N6XM X-Received: by 2002:a05:6512:2820:b0:4ff:9efd:8a9e with SMTP id cf32-20020a056512282000b004ff9efd8a9emr5465202lfb.7.1694103570749; Thu, 07 Sep 2023 09:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694103570; cv=none; d=google.com; s=arc-20160816; b=cXpIY5q5Me0YhBmSLS7T49AQcx7hc/l5xLKCtDQ4rGt4CnluaPUTb9qKxh33zih8Od JBlC9L8XNG45SPdmpaYHQeowW3BIO+LJs/l0AXAetNdK1wtjeQpol3THxqE+1+CBNcU4 o69RnTmDSGDuMHB2hBF8tKz4aUWmO+frEzyFdD2DSlzm223zi1EsL27XPkVe0so5ODg1 BTns/ByuFzwUpsuEJVT/JLtKQP7aPfwHjUdQnqpYqln47e8DYnpmXxuYd2y1wUcXCTca r5i4rbP3LfFVUYeRdSUtfmQy6wiEb3kUoNqWIGOPjP8Rn4SWb+psTat5oYJAv2WzXVdK P6gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uNekWqbroiT3eusW/jNl1HsuJO2UwOq39m0u9BjMw9o=; fh=xk0B3OwsWHpAMMZ+Be4enaqUEDW+Rlwa6IumtEpo6Bo=; b=iw5/f8Jp1o+Fb8qQvJ5pVOTkF4Y89B4LnaZWAm9ygjb4YncVKnUqnVhUHl1Hzk9CPm reSU/Z2RdODo4ZFqY2N0Hz3Hh4yGx0ND6K+p9YY0JGSDSt/hmCKwYSlfWO9RF58J52k6 /BG8XLbjcrLCmDTSBrl3Sn8zF11uKQ4GLG9PelD9jkWzq5PWFME701DPh6eKobWlWR9W /D42OBaApjfNe0Eco2x+QK7z8og+Hb1Tn6NgijR8ANvcNLp5h8tOkEQumQgtlq9/TrH8 qa/ADSDdxF8Yfer4j9+bXzoWwCWiqRCjMbj+sNk1GIGyBNgEHs+/83d5IYuEQ5+gZcPe 1nlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bveoZhUu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020aa7d0d1000000b00529197b9a82si11014913edo.673.2023.09.07.09.19.14; Thu, 07 Sep 2023 09:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bveoZhUu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231697AbjIGPjT (ORCPT + 53 others); Thu, 7 Sep 2023 11:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233900AbjIGPWh (ORCPT ); Thu, 7 Sep 2023 11:22:37 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 823BA199A for ; Thu, 7 Sep 2023 08:22:09 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 387DGftb004404; Thu, 7 Sep 2023 14:52:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=uNekWqbroiT3eusW/jNl1HsuJO2UwOq39m0u9BjMw9o=; b=bveoZhUuDDXC/WFCDgL0VZPIEL1DGvHWRzZpIp0NMKQ6BxmKIr6wHk0qwZbjFkDQMyrq sAH0LD4+yE3x5Q+QAplswU4ZUSJnOMa07y2JNA2Cu8Pvj+gyZCNizAll6hC5uCJUoxbO yZzgnXYAYa5Cin9pK+JPuIp/VipQckTIMXZXQSIC9SqtWS4A813IHQimpdW0mWFvmZ63 JMiEJkYOvBaLlVHkznBbtiseQH6Qg7lZBZUdFeQ2tK0z2REX9tCFv1RgVpRJSs/Oo4VM G8CHbMJIUT+1LgMTX0hDjgsL66e5JppwN4QuVGh7A9WNVO1pq+M5lURMDKJ+sHOZVtBp ng== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3sy4s7sgp8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Sep 2023 14:52:26 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 387EqQ7x028647 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Sep 2023 14:52:26 GMT Received: from [10.111.180.119] (10.49.16.6) 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.1118.36; Thu, 7 Sep 2023 07:52:25 -0700 Message-ID: <4c0c9068-0982-4b05-9c11-1aa5913a9c8c@quicinc.com> Date: Thu, 7 Sep 2023 07:52:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath11k: drop NULL pointer check in ath11k_dp_rx_mon_dest_process() Content-Language: en-US To: Dmitry Antipov CC: Kalle Valo , , , References: <20230907083852.10775-1-dmantipov@yandex.ru> From: Jeff Johnson In-Reply-To: <20230907083852.10775-1-dmantipov@yandex.ru> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: F6BDw0kUruSFLFV7ZEWUTnqCYT_BTGsB X-Proofpoint-ORIG-GUID: F6BDw0kUruSFLFV7ZEWUTnqCYT_BTGsB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-07_07,2023-09-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 phishscore=0 malwarescore=0 mlxscore=0 clxscore=1015 adultscore=0 spamscore=0 mlxlogscore=605 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309070132 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 9/7/2023 1:38 AM, Dmitry Antipov wrote: > Since 'srng_list' is a fixed-size array of 'struct hal_srng' > in 'struct ath11_hal', any of its member can't be NULL and > so relevant check may be dropped. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Dmitry Antipov Acked-by: Jeff Johnson > --- > drivers/net/wireless/ath/ath11k/dp_rx.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c > index 146201d8dba2..4463e308968c 100644 > --- a/drivers/net/wireless/ath/ath11k/dp_rx.c > +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c > @@ -5094,13 +5094,6 @@ static void ath11k_dp_rx_mon_dest_process(struct ath11k *ar, int mac_id, > > mon_dst_srng = &ar->ab->hal.srng_list[ring_id]; > > - if (!mon_dst_srng) { > - ath11k_warn(ar->ab, > - "HAL Monitor Destination Ring Init Failed -- %p", > - mon_dst_srng); > - return; > - } > - > spin_lock_bh(&pmon->mon_lock); > > ath11k_hal_srng_access_begin(ar->ab, mon_dst_srng);