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 @@ -414,7 +414,7 @@ static int qnoc_probe(struct platform_device *pdev)
414
414
struct icc_provider * provider ;
415
415
struct qcom_icc_node * * qnodes ;
416
416
struct qcom_icc_provider * qp ;
417
- struct icc_node * node ;
417
+ struct icc_node * node , * tmp ;
418
418
size_t num_nodes , i ;
419
419
int ret ;
420
420
@@ -494,7 +494,7 @@ static int qnoc_probe(struct platform_device *pdev)
494
494
495
495
return 0 ;
496
496
err :
497
- list_for_each_entry (node , & provider -> nodes , node_list ) {
497
+ list_for_each_entry_safe (node , tmp , & provider -> nodes , node_list ) {
498
498
icc_node_del (node );
499
499
icc_node_destroy (node -> id );
500
500
}
@@ -508,9 +508,9 @@ static int qnoc_remove(struct platform_device *pdev)
508
508
{
509
509
struct qcom_icc_provider * qp = platform_get_drvdata (pdev );
510
510
struct icc_provider * provider = & qp -> provider ;
511
- struct icc_node * n ;
511
+ struct icc_node * n , * tmp ;
512
512
513
- list_for_each_entry ( n , & provider -> nodes , node_list ) {
513
+ list_for_each_entry_safe ( n , tmp , & provider -> nodes , node_list ) {
514
514
icc_node_del (n );
515
515
icc_node_destroy (n -> id );
516
516
}
You can’t perform that action at this time.
0 commit comments