Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 902a3dd5 authored by Eric Dumazet's avatar Eric Dumazet Committed by Patrick McHardy
Browse files

netfilter: CLUSTERIP: clusterip_seq_stop() fix



If clusterip_seq_start() memory allocation fails, we crash later in
clusterip_seq_start(), trying to kfree(ERR_PTR(-ENOMEM))

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent d26e6a02
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -599,6 +599,7 @@ static void *clusterip_seq_next(struct seq_file *s, void *v, loff_t *pos)

static void clusterip_seq_stop(struct seq_file *s, void *v)
{
	if (!IS_ERR(v))
		kfree(v);
}