[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111117.165601.715150304040818603.davem@davemloft.net>
Date: Thu, 17 Nov 2011 16:56:01 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: roy.qing.li@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] ipv4: avoid to double release dst in tcp_v4_connect
From: roy.qing.li@...il.com
Date: Thu, 17 Nov 2011 16:33:48 +0800
> From: RongQing.Li <roy.qing.li@...il.com>
>
> When tcp_connect failed in tcp_v4_connect, the dst will be
> released in error handler of tcp_v4_connect, but dst has been
> set to sk->sk_dst_cache which will be released again when
> destroy this sk.
>
> Signed-off-by: RongQing.Li <roy.qing.li@...il.com>
We set 'rt' to NULL at these statements specifically to handle this
situation, ip_rt_put(NULL) will do nothing.
I don't think this change is necessary.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists