]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fix typo in walker_check_empty()
authorVlad Buslov <vladbu@mellanox.com>
Tue, 26 Feb 2019 15:34:40 +0000 (17:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 17:17:49 +0000 (09:17 -0800)
commitf5b9ac550e1b0afd74bd91c7baaccf0fc2721626
treeb55eb097b84af11cfdee69727bb925169cfc5c51
parentdf4ed3c0f825c323728efd7938e8aac6870c1478
net: sched: fix typo in walker_check_empty()

Function walker_check_empty() incorrectly verifies that tp pointer is not
NULL, instead of actual filter pointer. Fix conditional to check the right
pointer. Adjust filter pointer naming accordingly to other cls API
functions.

Fixes: 578b1f79bca3 ("net: sched: set dedicated tcf_walker flag when tp is empty")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reported-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c