File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
drivers/interconnect/qcom Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -652,7 +652,7 @@ static int msm8974_icc_probe(struct platform_device *pdev)
652
652
struct device * dev = & pdev -> dev ;
653
653
struct icc_onecell_data * data ;
654
654
struct icc_provider * provider ;
655
- struct icc_node * node ;
655
+ struct icc_node * node , * tmp ;
656
656
size_t num_nodes , i ;
657
657
int ret ;
658
658
@@ -732,7 +732,7 @@ static int msm8974_icc_probe(struct platform_device *pdev)
732
732
return 0 ;
733
733
734
734
err_del_icc :
735
- list_for_each_entry (node , & provider -> nodes , node_list ) {
735
+ list_for_each_entry_safe (node , tmp , & provider -> nodes , node_list ) {
736
736
icc_node_del (node );
737
737
icc_node_destroy (node -> id );
738
738
}
@@ -748,9 +748,9 @@ static int msm8974_icc_remove(struct platform_device *pdev)
748
748
{
749
749
struct msm8974_icc_provider * qp = platform_get_drvdata (pdev );
750
750
struct icc_provider * provider = & qp -> provider ;
751
- struct icc_node * n ;
751
+ struct icc_node * n , * tmp ;
752
752
753
- list_for_each_entry ( n , & provider -> nodes , node_list ) {
753
+ list_for_each_entry_safe ( n , tmp , & provider -> nodes , node_list ) {
754
754
icc_node_del (n );
755
755
icc_node_destroy (n -> id );
756
756
}
You can’t perform that action at this time.
0 commit comments