[PATCH 0/2] dmaengine: mv_xor: fix child node handling and switch to scoped loop

Javier Carrasco posted 2 patches 1 year, 3 months ago
drivers/dma/mv_xor.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH 0/2] dmaengine: mv_xor: fix child node handling and switch to scoped loop
Posted by Javier Carrasco 1 year, 3 months ago
This series fixes a wrong handling of the child node within the
for_each_child_of_node() by adding the missing calls to of_node_put() to
make it compatible with stable kernels that don't provide the scoped
variant of the macro, which is more secure and was introduced early this
year. The switch to the scoped macro is the next patch, which makes the
coe more robust and will avoid such issues in new error paths.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (2):
      dmaengine: mv_xor: fix child node refcount handling in early exit
      dmaengine: mv_xor: switch to for_each_child_of_node_scoped()

 drivers/dma/mv_xor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
base-commit: d61a00525464bfc5fe92c6ad713350988e492b88
change-id: 20241011-dma_mv_xor_of_node_put-5cc4126746a2

Best regards,
-- 
Javier Carrasco <javier.carrasco.cruz@gmail.com>
Re: (subset) [PATCH 0/2] dmaengine: mv_xor: fix child node handling and switch to scoped loop
Posted by Vinod Koul 1 year, 1 month ago
On Fri, 11 Oct 2024 22:57:58 +0200, Javier Carrasco wrote:
> This series fixes a wrong handling of the child node within the
> for_each_child_of_node() by adding the missing calls to of_node_put() to
> make it compatible with stable kernels that don't provide the scoped
> variant of the macro, which is more secure and was introduced early this
> year. The switch to the scoped macro is the next patch, which makes the
> coe more robust and will avoid such issues in new error paths.
> 
> [...]

Applied, thanks!

[2/2] dmaengine: mv_xor: switch to for_each_child_of_node_scoped()
      commit: 9f6caa3978b0e859da39e4ace7973b877222dfd4

Best regards,
-- 
~Vinod