]> git.proxmox.com Git - pve-kernel.git/blame - 0001-net-sched-actions-fix-access-to-uninitialized-data.patch
build: remove unused parts of Makefile
[pve-kernel.git] / 0001-net-sched-actions-fix-access-to-uninitialized-data.patch
CommitLineData
29e62dc0
FG
1From 45f4251eac81036e2532b16d13f1ad421813eca9 Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Thu, 13 Apr 2017 10:13:31 +0200
4Subject: [Zesty][PATCH 1/2] UBUNTU: SAUCE: net sched actions: fix access to uninitialized data
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1682368
10
11Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
12(cherry-picked from http://marc.info/?l=linux-netdev&m=149200746116365 )
13Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
14---
15 net/sched/act_api.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/net/sched/act_api.c b/net/sched/act_api.c
19index 501c42d..32f12f5 100644
20--- a/net/sched/act_api.c
21+++ b/net/sched/act_api.c
22@@ -607,7 +607,7 @@ struct tc_action *tcf_action_init_1(struct net *net, struct nlattr *nla,
23 if (err < 0)
24 goto err_mod;
25
26- if (tb[TCA_ACT_COOKIE]) {
27+ if (name == NULL && tb[TCA_ACT_COOKIE]) {
28 int cklen = nla_len(tb[TCA_ACT_COOKIE]);
29
30 if (cklen > TC_COOKIE_MAX_SIZE) {
31--
322.1.4
33