Commit 3876043a authored by Paul Moore's avatar Paul Moore

selinux: fix a 0/NULL mistmatch in ad_net_init_from_iif()

Use a NULL instead of a zero to resolve a int/pointer mismatch.

Cc: Paolo Abeni <pabeni@redhat.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307210332.4AqFZfzI-lkp@intel.com/
Fixes: dd51fcd4 ("selinux: introduce and use lsm_ad_net_init*() helpers")
Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 55a0e738
......@@ -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);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment