Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10381919rwp; Thu, 20 Jul 2023 20:50:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvfVtwtG2GfpLD3JbjVzhgxYQ8f22N+gldYjmZCuM+6KDnOsMRuVq9mbWMibSP3bWKx89S X-Received: by 2002:a2e:938d:0:b0:2b5:1b80:263a with SMTP id g13-20020a2e938d000000b002b51b80263amr566960ljh.47.1689911436213; Thu, 20 Jul 2023 20:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689911436; cv=none; d=google.com; s=arc-20160816; b=ncz9l38Mb+tJYF1zkEs06JxWMnqX5zgt6Shj7GVf5vmco0jxw75CKTi9tbK8j2dqeI yvaWkvs424N4meXxCynl4hNlAvcsgSvUWjRgErARWDqJWnq1TeGpCG5f1zA26uAyS/M5 Znz6JYvgLOPFUVINtB4j0k+IkWWqXZdLEPKX2NuEwFNkA2cZW/zh3VMh0kMkGnRrA1ii DPMFw3ZkFZt5v88GkyzarsVKzm1NCqyExISvD2IuT+BBVrg+wdYkJ+JGk+T6Go1BXiWY kItklwdwaiaAhAT59ul+JzRW7RgMzvQq3RWXQbfwIKmXROkJR0bysudkDXETDpwgF67l D6Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=IQlPLF4WaYeAqLIQK4ICUY/ib+nNy+7Rq8mNMbJTqno=; fh=QcDLc1si+ezSxZa/e3bhcdmbFwMco3XeW+uFlPRM/Jg=; b=CFRrLGSI4+nP/LcD+NmgJ1j6ysDWYD67Jvle+9waiXd5S5qr1nIyFapVohmhtlK2Iz DXoqFS3InU0rqmaag5wduvlof8usPB1iWu43TYDEs4fILhE95E79cUOY8FvKFYIvarSF Vt+G4J0zMBnOxa+Zk4byCFEhIcXi7wx8qyWDVT4Mx1FhBs6oqAi4RuOGlgyDaP+u3xZe LbtYUahZmliT3NVtOtdcFvcJqBp/ztrcKEW24jshdrc39zy1uP13lKCQ8FBHxqpXobNM YjsbiFUash9fY9raSyl4jY4PahJpxMdGkFO3fxpEVmKugrpTQKvTDtmKke2jVxP+cR5d j1hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qt10-20020a170906ecea00b00997ea7d6656si1596661ejb.628.2023.07.20.20.50.12; Thu, 20 Jul 2023 20:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230038AbjGUDcw (ORCPT + 99 others); Thu, 20 Jul 2023 23:32:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjGUDcv (ORCPT ); Thu, 20 Jul 2023 23:32:51 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DE7D1BF7; Thu, 20 Jul 2023 20:32:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VnsoRWg_1689910358; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VnsoRWg_1689910358) by smtp.aliyun-inc.com; Fri, 21 Jul 2023 11:32:45 +0800 From: Jiapeng Chong To: paul@paul-moore.com Cc: stephen.smalley.work@gmail.com, eparis@parisplace.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, selinux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, bpf@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] selinux: Use NULL for pointers Date: Fri, 21 Jul 2023 11:32:36 +0800 Message-Id: <20230721033236.42689-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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-kernel@vger.kernel.org Replace integer constants with NULL. security/selinux/hooks.c:251:41: warning: Using plain integer as NULL pointer. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5958 Signed-off-by: Jiapeng Chong --- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 62072b63b19b..d0818a338fa8 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -248,7 +248,7 @@ static void ad_net_init_from_iif(struct common_audit_data *ad, struct lsm_network_audit *net, int ifindex, u16 family) { - __ad_net_init(ad, net, ifindex, 0, family); + __ad_net_init(ad, net, ifindex, NULL, family); } /* -- 2.20.1.7.g153144c