summaryrefslogtreecommitdiffstats
path: root/debian/patches/bugfix/all/net_sched-let-qdisc_put-accept-null-pointer.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 03:22:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 03:26:40 +0000
commit08f003891b84f52e49a5bdbc8a589fb052ac9a4e (patch)
treeb7e426b4a4eb48e9e71188a2812a4c71625c35ac /debian/patches/bugfix/all/net_sched-let-qdisc_put-accept-null-pointer.patch
parentMerging upstream version 4.19.260. (diff)
downloadlinux-08f003891b84f52e49a5bdbc8a589fb052ac9a4e.tar.xz
linux-08f003891b84f52e49a5bdbc8a589fb052ac9a4e.zip
Merging debian version 4.19.260-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/bugfix/all/net_sched-let-qdisc_put-accept-null-pointer.patch')
-rw-r--r--debian/patches/bugfix/all/net_sched-let-qdisc_put-accept-null-pointer.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/debian/patches/bugfix/all/net_sched-let-qdisc_put-accept-null-pointer.patch b/debian/patches/bugfix/all/net_sched-let-qdisc_put-accept-null-pointer.patch
deleted file mode 100644
index 3f259ac4c..000000000
--- a/debian/patches/bugfix/all/net_sched-let-qdisc_put-accept-null-pointer.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From: Diederik de Haas <didi.debian@cknow.org>
-Date: Wed, 22 Jun 2022 11:44:05 +0200
-Subject: net_sched: let qdisc_put() accept NULL pointer
-Bug-Debian: https://bugs.debian.org/1013299
-
-In commit 92833e8b5db6c209e9311ac8c6a44d3bf1856659 titled
-"net: sched: rename qdisc_destroy() to qdisc_put()" part of the
-functionality of qdisc_destroy() was moved into a (for linux-4.19.y)
-new function qdisk_put(), and the previous calls to qdisc_destroy()
-were changed to qdisk_put().
-This made it similar to f.e. 5.10.y and current master.
-
-There was one part of qdisc_destroy() not moved over to qdisc_put() and
-that was the check for a NULL value, causing oopses.
-(See upstream commit: 6efb971ba8edfbd80b666f29de12882852f095ae)
-This patch fixes that.
-
-Fixes: 92833e8b5db6c209e9311ac8c6a44d3bf1856659
-Reported-by: Thorsten Glaser <tg@mirbsd.de>
-Link: https://bugs.debian.org/1013299
----
- net/sched/sch_generic.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
-index 7c1b1eff84f4..cad2586c3473 100644
---- a/net/sched/sch_generic.c
-+++ b/net/sched/sch_generic.c
-@@ -970,8 +970,6 @@ static void qdisc_destroy(struct Qdisc *qdisc)
- const struct Qdisc_ops *ops;
- struct sk_buff *skb, *tmp;
-
-- if (!qdisc)
-- return;
- ops = qdisc->ops;
-
- #ifdef CONFIG_NET_SCHED
-@@ -1003,6 +1001,9 @@ static void qdisc_destroy(struct Qdisc *qdisc)
-
- void qdisc_put(struct Qdisc *qdisc)
- {
-+ if (!qdisc)
-+ return;
-+
- if (qdisc->flags & TCQ_F_BUILTIN ||
- !refcount_dec_and_test(&qdisc->refcnt))
- return;
---
-2.36.1
-