]> git.baikalelectronics.ru Git - kernel.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)
commit5916b70ebb964b33a10d1fabb47e1f0372a204d5
treec02719d506db20f6944340f21e127f074dca6229
parenta40319fc22488d79ffc24fece141de549f86af65
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