]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: sched: ensure n arg not empty before call bind_class
authorZhengchao Shao <shaozhengchao@huawei.com>
Tue, 27 Sep 2022 12:48:53 +0000 (20:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Oct 2022 15:07:17 +0000 (16:07 +0100)
commit4e6263ec8bc965f0bd1c24bb40694a38e382e7a9
treec02719d506db20f6944340f21e127f074dca6229
parentbc37b24ee05e3fc4eae3e51c25572ccda9c34c11
net: sched: ensure n arg not empty before call bind_class

All bind_class callbacks are directly returned when n arg is empty.
Therefore, bind_class is invoked only when n arg is not empty.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c