Tag: 270b4b3115d816a91fdb31a0c1686709eb60c3ed

cnic: Replace rcu_dereference() with rcu_access_pointer()

Author: Andreea-Cristina Bernat <bernat.ada@gmail.com> The « rcu_dereference() » calls are used directly in conditions. Since their return values are never dereferenced it is recommended to use « rcu_access_pointer() » instead of « rcu_dereference() ». Therefore, this patch makes the replacements. The following Coccinelle semantic patch was used: @@ @@ ( if( ()) {…} | while( ()) {…} ) Signed-off-by: Andreea-Cristina Bernat …

Lire la suite