From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754378AbdDLOah (ORCPT ); Wed, 12 Apr 2017 10:30:37 -0400 Received: from proxmox.maurer-it.com ([212.186.127.180]:25185 "EHLO proxmox.maurer-it.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754258AbdDLOad (ORCPT ); Wed, 12 Apr 2017 10:30:33 -0400 From: Wolfgang Bumiller To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jamal Hadi Salim , "David S. Miller" Subject: [PATCH linux 1/2] net sched actions: fix access to uninitialized data Date: Wed, 12 Apr 2017 16:21:39 +0200 Message-Id: <20170412142140.26649-2-w.bumiller@proxmox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170412142140.26649-1-w.bumiller@proxmox.com> References: <20170412142140.26649-1-w.bumiller@proxmox.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Wolfgang Bumiller --- net/sched/act_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index b70aa57319ea..8cc883c063f0 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -604,7 +604,7 @@ struct tc_action *tcf_action_init_1(struct net *net, struct nlattr *nla, if (err < 0) goto err_mod; - if (tb[TCA_ACT_COOKIE]) { + if (name == NULL && tb[TCA_ACT_COOKIE]) { int cklen = nla_len(tb[TCA_ACT_COOKIE]); if (cklen > TC_COOKIE_MAX_SIZE) { -- 2.11.0