]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 18:41:44 +0000 (14:41 -0400)
commit97f7f1a053699c093717d9cd30e962e94aafde3c
treee04538461d81b1e57d5f07516553357d1719a336
parent75d5414f5d331fc5193d3a0862a706e66cd0323b
net/sched: fix refcnt leak in the error path of tcf_vlan_init()

Similarly to what was done with commit df64ea60856d ("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: c0e0435c5f2a ("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>
net/sched/act_vlan.c