diff options
author | Yevhen Orlov <yevhen.orlov@plvision.eu> | 2022-01-11 03:10:14 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-12 10:16:55 -0800 |
commit | 6a1ba8758f67e37a48fd2f940032a2b186bcf021 (patch) | |
tree | 4c5bc032483dc112791189c2981243f1c8f720f3 /security | |
parent | 9c0c2c7aa23cbf78277557cfe8ec8bb7689225fe (diff) | |
download | linux-stable-6a1ba8758f67e37a48fd2f940032a2b186bcf021.tar.gz linux-stable-6a1ba8758f67e37a48fd2f940032a2b186bcf021.tar.bz2 linux-stable-6a1ba8758f67e37a48fd2f940032a2b186bcf021.zip |
net: marvell: prestera: Refactor get/put VR functions
* Use refcount, instead of uint
* Increment/decrement recount inside get/put
* Fix error path in __prestera_vr_create. Remove unnecessary kfree.
* Make __prestera_vr_destroy symmetric to "create"
Fixes: bca5859bc6c6 ("net: marvell: prestera: add hardware router objects accounting")
Signed-off-by: Yevhen Orlov <yevhen.orlov@plvision.eu>
Link: https://lore.kernel.org/r/20220111011014.4418-1-yevhen.orlov@plvision.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions