]> git.baikalelectronics.ru Git - kernel.git/commit
qdisc: fix a module refcount leak in qdisc_create_dflt()
authorEric Dumazet <edumazet@google.com>
Wed, 24 Aug 2016 16:39:02 +0000 (09:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Aug 2016 23:44:20 +0000 (16:44 -0700)
commit88904bd25250d94cb86b4847a7db24d98462c9b5
tree4914730f1ac8cf84c32c36fb10a3c3b67778639c
parentb8e6df754187246480c7e5d0bd64bd70f54b0cdd
qdisc: fix a module refcount leak in qdisc_create_dflt()

Should qdisc_alloc() fail, we must release the module refcount
we got right before.

Fixes: 13efa0cc0890 ("qdisc: allow setting default queuing discipline")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c