summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/cls_fw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c
index 456ee6e62dfa..ad036b00427d 100644
--- a/net/sched/cls_fw.c
+++ b/net/sched/cls_fw.c
@@ -363,7 +363,10 @@ static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg,
363 struct fw_head *head = rtnl_dereference(tp->root); 363 struct fw_head *head = rtnl_dereference(tp->root);
364 int h; 364 int h;
365 365
366 if (head == NULL || arg->stop) 366 if (head == NULL)
367 arg->stop = 1;
368
369 if (arg->stop)
367 return; 370 return;
368 371
369 for (h = 0; h < HTSIZE; h++) { 372 for (h = 0; h < HTSIZE; h++) {