Message ID | 20210331142606.1422498-1-colin.king@canonical.com |
---|---|
State | New |
Headers | show |
Series | [next] netfilter: nf_log_bridge: Fix missing assignment of ret on a call to nf_log_register | expand |
On Wed, Mar 31, 2021 at 03:26:06PM +0100, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > Currently the call to nf_log_register is returning an error code that > is not being assigned to ret and yet ret is being checked. Fix this by > adding in the missing assignment. Applied, thanks.
diff --git a/net/netfilter/nf_log_syslog.c b/net/netfilter/nf_log_syslog.c index 025ab9c66d13..2518818ed479 100644 --- a/net/netfilter/nf_log_syslog.c +++ b/net/netfilter/nf_log_syslog.c @@ -1042,7 +1042,7 @@ static int __init nf_log_syslog_init(void) if (ret < 0) goto err4; - nf_log_register(NFPROTO_BRIDGE, &nf_bridge_logger); + ret = nf_log_register(NFPROTO_BRIDGE, &nf_bridge_logger); if (ret < 0) goto err5;