mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
Add a missing of_node_put in suspend code error path.
-----BEGIN PGP SIGNATURE----- iQFEBAABCAAuFiEE7v+35S2Q1vLNA3Lx86Z5yZzRHYEFAmLEGAUQHGhlaWtvQHNu dGVjaC5kZQAKCRDzpnnJnNEdgd9TB/92Yh/Q713tbzpF1L+FWfnX8vReRjl+GPW4 9YC8U6qXuOZk8Jxu/hqTbr9j7G1CVl9W1BxfRGqrLxOphfjtB62UjsuOCZyQ8djX Fv7n/bGq9fr4Ic8fSY1XvLgH/jFOF0zaI9cKvZVF8dOXlIfe/yg5vwTDtoKKDx3g r+c3UKmW3anB4DW4opMraZwys2rEwLHeRWSTZ0lLkEISJy9+w4a+HCj0ooqHbXFc hqLtNUz8xx5rEnLDv0vRme6rbGnl1z8UZnvcNT2GM8VjBYm4BM5LxTeQ1E+gAat4 TpMClcoEG3bDvfnI6+AK7jAicBMhLS1JfwsO3Wrn645K2eyymNFr =XBUo -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEo6/YBQwIrVS28WGKmmx57+YAGNkFAmLFc7EACgkQmmx57+YA GNmyug/7BnDM6SvTp/XuNzQf6TBh7fSZ8MNwMnaAllsa38xblZl/MPDhT8GOaxGK fLzjKLoy8ykb9ReFHim2V6vyCZ39Qar5Udi3eHMTqmE8rDNL4ahj2mQN4fK5TxMP 2R+2HlVS6XHGf7cjXaBQVXnI2FqslQO2mfvmNEfgYWTijT6BpIejIviwcgEMMxbE S0fsN3TBSfSSM0jGP0QDVGs2ig07IWanhVFgGACGT2SbIAWUtcBqZD0MSYDQcNVk hlbBrRO84DLP/+xkMV836WJ+9UB3YUqs/33wqgc+IOocB1qCQTBYFoVtl39JEux/ uLckoD9pafOcHr8/d84v0OZgjtR9d+7phidOg+lZxorQRAlXhWkNPh4Q1MdLvvz9 CUvnUUcxrlwLP3BylEGvZEvP/WQlReXnXldhtiStmJzrnr37docEhMYddGaCIIvw ePz3wTQVdebfDAVuVPX+Nb/WpymIPPPiepeBZ16hKugfRZI6GuTz7JIOKRSvg+hc fnVTGem3koGYclu/0kkHOByv8hjr/iEg8tIh2ijRxoheBbbK5P0DSLZ96Pqg7JY4 Jl+sldgRZa6UJwX17jW2hUhdrKFsZ7ulWXbJTHdksHjdngpTgAutWAdxzerN69mZ Y6kmLzxjzAjgJL2D1V9RhI5pMy+D+BCKWnHZLZStbmPu3lKTfUU= =x2Fx -----END PGP SIGNATURE----- Merge tag 'v5.19-rockchip-socfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/fixes Add a missing of_node_put in suspend code error path. * tag 'v5.19-rockchip-socfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: rockchip: Add missing of_node_put() in rockchip_suspend_init() Link: https://lore.kernel.org/r/7527945.6fTUFtlzNn@phil Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
commit
aafc013e82
@ -311,7 +311,7 @@ void __init rockchip_suspend_init(void)
|
||||
&match);
|
||||
if (!match) {
|
||||
pr_err("Failed to find PMU node\n");
|
||||
return;
|
||||
goto out_put;
|
||||
}
|
||||
pm_data = (struct rockchip_pm_data *) match->data;
|
||||
|
||||
@ -320,9 +320,12 @@ void __init rockchip_suspend_init(void)
|
||||
|
||||
if (ret) {
|
||||
pr_err("%s: matches init error %d\n", __func__, ret);
|
||||
return;
|
||||
goto out_put;
|
||||
}
|
||||
}
|
||||
|
||||
suspend_set_ops(pm_data->ops);
|
||||
|
||||
out_put:
|
||||
of_node_put(np);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user