aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/netfilter/nfnetlink_log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index 1b940512d87b..b669db564695 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -858,6 +858,9 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
858 ret = -EINVAL; 858 ret = -EINVAL;
859 break; 859 break;
860 } 860 }
861
862 if (!inst)
863 goto out;
861 } else { 864 } else {
862 if (!inst) { 865 if (!inst) {
863 UDEBUG("no config command, and no instance for " 866 UDEBUG("no config command, and no instance for "
@@ -911,6 +914,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
911 914
912out_put: 915out_put:
913 instance_put(inst); 916 instance_put(inst);
917out:
914 return ret; 918 return ret;
915} 919}
916 920