selinux: fix a 0/NULL mistmatch in ad_net_init_from_iif()
authorPaul Moore <paul@paul-moore.com>
Thu, 20 Jul 2023 20:26:34 +0000 (16:26 -0400)
committerPaul Moore <paul@paul-moore.com>
Thu, 20 Jul 2023 20:29:47 +0000 (16:29 -0400)
Use a NULL instead of a zero to resolve a int/pointer mismatch.

Cc: Paolo Abeni <pabeni@redhat.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307210332.4AqFZfzI-lkp@intel.com/
Fixes: dd51fcd42fd6 ("selinux: introduce and use lsm_ad_net_init*() helpers")
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c

index 6f53fa71fbdb1fa6df5eb74a69b602e4b8c2234f..5194f12def977bbfe695985d8ebeec34a0b49d99 100644 (file)
@@ -246,7 +246,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);
 }
 
 /*