From: RongQing.Li Date: Mon, 21 Nov 2011 21:45:26 +0000 (-0500) Subject: dccp: fix error propagation in dccp_v4_connect X-Git-Tag: v3.2-rc5~56^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=525c6465d449cdec04b3c91733e46027a4d08422;p=platform%2Fkernel%2Flinux-3.10.git dccp: fix error propagation in dccp_v4_connect The errcode is not updated when ip_route_newports() fails. Signed-off-by: RongQing.Li Signed-off-by: David S. Miller --- diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 90a919a..3f4e541 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c @@ -111,6 +111,7 @@ int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) rt = ip_route_newports(fl4, rt, orig_sport, orig_dport, inet->inet_sport, inet->inet_dport, sk); if (IS_ERR(rt)) { + err = PTR_ERR(rt); rt = NULL; goto failure; }