@@ -31,23 +31,23 @@ struct bpf_nf_link {
3131#if IS_ENABLED (CONFIG_NF_DEFRAG_IPV4 ) || IS_ENABLED (CONFIG_NF_DEFRAG_IPV6 )
3232static const struct nf_defrag_hook *
3333get_proto_defrag_hook (struct bpf_nf_link * link ,
34- const struct nf_defrag_hook __rcu * global_hook ,
34+ const struct nf_defrag_hook __rcu * * ptr_global_hook ,
3535 const char * mod )
3636{
3737 const struct nf_defrag_hook * hook ;
3838 int err ;
3939
4040 /* RCU protects us from races against module unloading */
4141 rcu_read_lock ();
42- hook = rcu_dereference (global_hook );
42+ hook = rcu_dereference (* ptr_global_hook );
4343 if (!hook ) {
4444 rcu_read_unlock ();
4545 err = request_module (mod );
4646 if (err )
4747 return ERR_PTR (err < 0 ? err : - EINVAL );
4848
4949 rcu_read_lock ();
50- hook = rcu_dereference (global_hook );
50+ hook = rcu_dereference (* ptr_global_hook );
5151 }
5252
5353 if (hook && try_module_get (hook -> owner )) {
@@ -78,7 +78,7 @@ static int bpf_nf_enable_defrag(struct bpf_nf_link *link)
7878 switch (link -> hook_ops .pf ) {
7979#if IS_ENABLED (CONFIG_NF_DEFRAG_IPV4 )
8080 case NFPROTO_IPV4 :
81- hook = get_proto_defrag_hook (link , nf_defrag_v4_hook , "nf_defrag_ipv4" );
81+ hook = get_proto_defrag_hook (link , & nf_defrag_v4_hook , "nf_defrag_ipv4" );
8282 if (IS_ERR (hook ))
8383 return PTR_ERR (hook );
8484
@@ -87,7 +87,7 @@ static int bpf_nf_enable_defrag(struct bpf_nf_link *link)
8787#endif
8888#if IS_ENABLED (CONFIG_NF_DEFRAG_IPV6 )
8989 case NFPROTO_IPV6 :
90- hook = get_proto_defrag_hook (link , nf_defrag_v6_hook , "nf_defrag_ipv6" );
90+ hook = get_proto_defrag_hook (link , & nf_defrag_v6_hook , "nf_defrag_ipv6" );
9191 if (IS_ERR (hook ))
9292 return PTR_ERR (hook );
9393
0 commit comments