diff options
author | Yevhen Orlov <yevhen.orlov@plvision.eu> | 2022-01-11 02:10:14 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-12 19:16:55 +0100 |
commit | 6a1ba8758f67e37a48fd2f940032a2b186bcf021 (patch) | |
tree | 4c5bc032483dc112791189c2981243f1c8f720f3 /drivers/eisa | |
parent | net: marvell: prestera: Cleanup router struct (diff) | |
download | linux-6a1ba8758f67e37a48fd2f940032a2b186bcf021.tar.xz linux-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 'drivers/eisa')
0 files changed, 0 insertions, 0 deletions