]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net/sched: fix refcnt leak in the error path of tcf_vlan_init()
authorDavide Caratti <dcaratti@redhat.com>
Wed, 16 May 2018 10:54:29 +0000 (12:54 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:27:52 +0000 (12:27 +0200)
commit513d982dda919a915554bd120932c70a5c9cf2b3
treedc9dd1c3590635104e5fb6f553c2f976946733c8
parente482245299c70225801ce80ace2200b054ec25cf
net/sched: fix refcnt leak in the error path of tcf_vlan_init()

BugLink: http://bugs.launchpad.net/bugs/1783418
[ Upstream commit 5a4931ae0193f8a4a97e8260fd0df1d705d83299 ]

Similarly to what was done with commit a52956dfc503 ("net sched actions:
fix refcnt leak in skbmod"), fix the error path of tcf_vlan_init() to avoid
refcnt leaks when wrong value of TCA_VLAN_PUSH_VLAN_PROTOCOL is given.

Fixes: 5026c9b1bafc ("net sched: vlan action fix late binding")
CC: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/sched/act_vlan.c