-stable review patch. If anyone has any objections, please let us know. ------------------ From: Michal Miroslaw [NETFILTER]: nfnetlink_log: fix possible NULL pointer dereference Eliminate possible NULL pointer dereference in nfulnl_recv_config(). Signed-off-by: Michal Miroslaw Signed-off-by: Patrick McHardy Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nfnetlink_log.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -867,6 +867,9 @@ nfulnl_recv_config(struct sock *ctnl, st ret = -EINVAL; break; } + + if (!inst) + goto out; } else { if (!inst) { UDEBUG("no config command, and no instance for " @@ -920,6 +923,7 @@ nfulnl_recv_config(struct sock *ctnl, st out_put: instance_put(inst); +out: return ret; } --