X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=net%2Fipv6%2Fipv6_sockglue.c;h=003fd99ff597d6f4332008c90f6bdcb2b9e80493;hb=a51482bde22f99c63fbbb57d5d46cc666384e379;hp=8567873d0dd85fabd972537eccce7d79d8107611;hpb=82b7ec75df5b52d6febffb02ce4080a67550ac56;p=deliverable%2Flinux.git diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 8567873d0dd8..003fd99ff597 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c @@ -80,8 +80,7 @@ int ip6_ra_control(struct sock *sk, int sel, void (*destructor)(struct sock *)) if (ra->sk == sk) { if (sel>=0) { write_unlock_bh(&ip6_ra_lock); - if (new_ra) - kfree(new_ra); + kfree(new_ra); return -EADDRINUSE; }