Browse Source

sched: Fix accidental removal of errout goto

Bring back the goto that was removed by accident.

Reported-by: Colin Ian King <colin.king@canonical.com>
Fixes: 40c81b25b16c ("sched: check negative err value to safe one level of indent")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Jiri Pirko 8 years ago
parent
commit
d7cf52c249
1 changed files with 1 additions and 0 deletions
  1. 1 0
      net/sched/cls_api.c

+ 1 - 0
net/sched/cls_api.c

@@ -389,6 +389,7 @@ replay:
 				       RTM_DELTFILTER, false);
 				       RTM_DELTFILTER, false);
 			if (tcf_proto_destroy(tp, false))
 			if (tcf_proto_destroy(tp, false))
 				RCU_INIT_POINTER(*back, next);
 				RCU_INIT_POINTER(*back, next);
+			goto errout;
 		case RTM_GETTFILTER:
 		case RTM_GETTFILTER:
 			err = tfilter_notify(net, skb, n, tp, fh,
 			err = tfilter_notify(net, skb, n, tp, fh,
 					     RTM_NEWTFILTER, true);
 					     RTM_NEWTFILTER, true);