]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: ti: am65-cpsw: Fix PM runtime leakage in am65_cpsw_nuss_ndo_slave_open()
authorRoger Quadros <rogerq@kernel.org>
Thu, 8 Dec 2022 10:55:34 +0000 (12:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 20:52:28 +0000 (12:52 -0800)
commit5821504f5073983733465b8bc430049c4343bbd7
tree39d29f93580a190a25b43918cc8ac49f5b5becb1
parentfba119cee1412f49c472f3913241d00f830761fd
net: ethernet: ti: am65-cpsw: Fix PM runtime leakage in am65_cpsw_nuss_ndo_slave_open()

Ensure pm_runtime_put() is issued in error path.

Reported-by: Jakub Kicinski <kuba@kernel.org>
Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Saeed Mahameed <saeed@kernel.org>
Link: https://lore.kernel.org/r/20221208105534.63709-1-rogerq@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c