X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=net%2Fipv4%2Fip_options.c;h=dbe12da8d8b3960fe7dc796de97eae2546e1528d;hb=a51482bde22f99c63fbbb57d5d46cc666384e379;hp=bce4e875193be1d596c4c607ab42e9e1f966513f;hpb=ac7c98eca88a854755475fcfe1b2bf5f97f90d99;p=deliverable%2Flinux.git diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c index bce4e875193b..dbe12da8d8b3 100644 --- a/net/ipv4/ip_options.c +++ b/net/ipv4/ip_options.c @@ -510,8 +510,7 @@ static int ip_options_get_finish(struct ip_options **optp, kfree(opt); return -EINVAL; } - if (*optp) - kfree(*optp); + kfree(*optp); *optp = opt; return 0; }