From: Stephen Hemminger Date: Wed, 10 Oct 2007 10:10:39 +0000 (-0700) Subject: Fix cls_u32 error return handling. X-Git-Tag: v2.6.22.11~25 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fda485207e705c4447d450155e9b4eb85acf8062;p=karo-tx-linux.git Fix cls_u32 error return handling. changeset bf1b803b01b00c3801e0aa373ba0305f8278e260 from mainline. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index c7a347bd6d70..f2686ea3fe88 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c @@ -518,7 +518,7 @@ static int u32_set_parms(struct tcf_proto *tp, unsigned long base, #ifdef CONFIG_NET_CLS_IND if (tb[TCA_U32_INDEV-1]) { - int err = tcf_change_indev(tp, n->indev, tb[TCA_U32_INDEV-1]); + err = tcf_change_indev(tp, n->indev, tb[TCA_U32_INDEV-1]); if (err < 0) goto errout; }