[Devel] [PATCH RHEL9 COMMIT] netfilter: fix compilation error in nf_log_unknown_packet

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jan 9 19:57:29 MSK 2023


The commit is pushed to "branch-rh9-5.14.0-162.6.1.vz9.18.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-162.6.1.el9
------>
commit 3dc6db03a52bb5b69f1bddd154cc4e21b3a5e763
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date:   Fri Jan 6 15:02:11 2023 +0300

    netfilter: fix compilation error in nf_log_unknown_packet
    
    net/netfilter/nf_log_syslog.c: In function 'nf_log_unknown_packet':
    net/netfilter/nf_log_syslog.c:932:9: error: too few arguments to function 'nf_log_buf_close'
      932 |         nf_log_buf_close(m);
          |         ^~~~~~~~~~~~~~~~
    In file included from net/netfilter/nf_log_syslog.c:25:
    ./include/net/netfilter/nf_log.h:100:6: note: declared here
      100 | void nf_log_buf_close(struct nf_log_buf *m, struct net *net);
          |      ^~~~~~~~~~~~~~~~
    
    Fixes: a245e8cecfbe ("ve/nf_log_syslog: virtualize packet logging per-ve")
    
    Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 net/netfilter/nf_log_syslog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_log_syslog.c b/net/netfilter/nf_log_syslog.c
index b05089283ddc..1ec5c15f426b 100644
--- a/net/netfilter/nf_log_syslog.c
+++ b/net/netfilter/nf_log_syslog.c
@@ -929,7 +929,7 @@ static void nf_log_unknown_packet(struct net *net, u_int8_t pf,
 
 	dump_mac_header(m, loginfo, skb);
 
-	nf_log_buf_close(m);
+	nf_log_buf_close(m, net);
 }
 
 static void nf_log_netdev_packet(struct net *net, u_int8_t pf,


More information about the Devel mailing list