aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm
diff options
context:
space:
mode:
Diffstat (limited to 'net/atm')
-rw-r--r--net/atm/clip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c
index d257da50fcfb..810a1294eddb 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -520,9 +520,9 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip)
520 unlink_clip_vcc(clip_vcc); 520 unlink_clip_vcc(clip_vcc);
521 return 0; 521 return 0;
522 } 522 }
523 error = ip_route_output_key(&init_net, &rt, &fl); 523 rt = ip_route_output_key(&init_net, &fl);
524 if (error) 524 if (IS_ERR(rt))
525 return error; 525 return PTR_ERR(rt);
526 neigh = __neigh_lookup(&clip_tbl, &ip, rt->dst.dev, 1); 526 neigh = __neigh_lookup(&clip_tbl, &ip, rt->dst.dev, 1);
527 ip_rt_put(rt); 527 ip_rt_put(rt);
528 if (!neigh) 528 if (!neigh)