File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ static void dpm_async_resume_subordinate(struct device *dev, async_func_t func)
675675 idx = device_links_read_lock ();
676676
677677 /* Start processing the device's "async" consumers. */
678- list_for_each_entry_rcu (link , & dev -> links .consumers , s_node )
678+ list_for_each_entry_rcu_locked (link , & dev -> links .consumers , s_node )
679679 if (READ_ONCE (link -> status ) != DL_STATE_DORMANT )
680680 dpm_async_with_cleanup (link -> consumer , func );
681681
@@ -1330,7 +1330,7 @@ static void dpm_async_suspend_superior(struct device *dev, async_func_t func)
13301330 idx = device_links_read_lock ();
13311331
13321332 /* Start processing the device's "async" suppliers. */
1333- list_for_each_entry_rcu (link , & dev -> links .suppliers , c_node )
1333+ list_for_each_entry_rcu_locked (link , & dev -> links .suppliers , c_node )
13341334 if (READ_ONCE (link -> status ) != DL_STATE_DORMANT )
13351335 dpm_async_with_cleanup (link -> supplier , func );
13361336
You can’t perform that action at this time.
0 commit comments