selinux: fix a 0/NULL mistmatch in ad_net_init_from_iif()
Paul Moore
maintainerPATCH 1/1 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 <[email protected]>
Reported-by kernel test robot <[email protected]>
Fixes dd51fcd42fd6 ("selinux: introduce and use lsm_ad_net_init*() helpers")
Signed-off-by Paul Moore <[email protected]>
--- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/selinux/hooks.c +1 -1
@@ -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 ); }/*
Signature · 1 line
2.41.0
Hi,
Quoted 16 lines · Paul Moore
Use a NULL instead of a zero to resolve a int/pointer mismatch.
Cc Paolo Abeni <[email protected]>Reported-by kernel test robot <[email protected]>Fixes dd51fcd42fd6 ("selinux: introduce and use lsm_ad_net_init*() helpers")Signed-off-by Paul Moore <[email protected]>--- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)security/selinux/hooks.c +0
-0
security/selinux/hooks.c static void ad_net_init_from_iif(struct common_audit_data *ad, · line 252
Quoted 8 lines
security/selinux/hooks.c +1
-1@@ -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 ); }/*
Oops, my fault! Thanks for fixing it!
Acked-by Paolo Abeni <[email protected]>
/P
Paul Moore
maintainerQuoted 24 lines · Paolo Abeni
Quoted 23 lines · Paul Moore
Use a NULL instead of a zero to resolve a int/pointer mismatch.
Cc Paolo Abeni <[email protected]>Reported-by kernel test robot <[email protected]>Fixes dd51fcd42fd6 ("selinux: introduce and use lsm_ad_net_init*() helpers")Signed-off-by Paul Moore <[email protected]>--- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)security/selinux/hooks.c +1
-1@@ -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 ); }
Quoted 5 lines
security/selinux/hooks.c static void ad_net_init_from_iif(struct common_audit_data *ad, · line 252
Quoted 1 line
security/selinux/hooks.c +0
-0/* Oops, my fault! Thanks for fixing it!
Acked-by Paolo Abeni <[email protected]>
I just merged this into selinux/next, thanks.
Signature · 1 line
paul-moore.com