VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   30 Branches   50 Tags
author: Eric Dumazet <edumazet@google.com> 2021-10-18 17:34:01 -0700 committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:41 +0800 commit: a37eaccd32df2878f16b9f48bcdbde2b1cb11074 parent: e4b89cf18fd68fb33841cc3f77b94d709aaa7356
Commit Summary:
net: sched: fix logic error in qdisc_run_begin()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index 21fd95665ca0..8d6fa3228d7e 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -217,7 +217,7 @@ static inline bool qdisc_run_begin(struct Qdisc *qdisc)
 		 */
 		return spin_trylock(&qdisc->seqlock);
 	}
-	return test_and_set_bit(__QDISC_STATE_RUNNING, &qdisc->state);
+	return !test_and_set_bit(__QDISC_STATE_RUNNING, &qdisc->state);
 }
 
 static inline void qdisc_run_end(struct Qdisc *qdisc)