]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Add missing genlmsg_cancel() in devlink_nl_sb_port_pool_fill()
authorWang Hai <wanghai38@huawei.com>
Fri, 13 Nov 2020 11:16:22 +0000 (19:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Nov 2020 00:23:19 +0000 (16:23 -0800)
commit04d7dccbb57c3c654d3a11436ddf2371b1f0e81f
tree819652f8ab8bf5faf980883f02f7c139af4a4abc
parent45107478169a334c4322d3875c06c1613ed875cc
devlink: Add missing genlmsg_cancel() in devlink_nl_sb_port_pool_fill()

If sb_occ_port_pool_get() failed in devlink_nl_sb_port_pool_fill(),
msg should be canceled by genlmsg_cancel().

Fixes: a2dbb1e057e0 ("devlink: implement shared buffer occupancy monitoring interface")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Link: https://lore.kernel.org/r/20201113111622.11040-1-wanghai38@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c