linux/drivers/net/bonding
Andreea-Cristina Bernat b5091b552a bonding: Replace rcu_dereference() with rcu_access_pointer()
This "rcu_dereference()" call is used directly in a condition.
Since its return value is never dereferenced it is recommended to use
"rcu_access_pointer()" instead of "rcu_dereference()".
Therefore, this patch makes this replacement.

The following Coccinelle semantic patch was used for solving it:
@@
@@

(
 if(
 (<+...
- rcu_dereference
+ rcu_access_pointer
  (...)
 ...+>)) {...}
|
 while(
 (<+...
- rcu_dereference
+ rcu_access_pointer
  (...)
  ...+>)) {...}
)

Signed-off-by: Andreea-Cristina Bernat <bernat.ada@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-08-22 12:23:10 -07:00
..
bond_3ad.c bonding: remove pr_fmt from bond_3ad.c 2014-07-15 23:15:58 -07:00
bond_3ad.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-02-19 01:24:22 -05:00
bond_alb.c bonding: Replace rcu_dereference() with rcu_access_pointer() 2014-08-22 12:23:10 -07:00
bond_alb.h bonding: Do not try to send packets over dead link in TLB mode. 2014-07-16 23:35:35 -07:00
bond_debugfs.c bonding: convert bond_debugfs.c to use netdev_printk instead of pr_ 2014-07-15 23:15:58 -07:00
bond_main.c bonding: fix a memory leak in bond_arp_send_all() 2014-07-28 17:27:47 -07:00
bond_netlink.c bonding: bonding: remove pr_fmt from bond_netlink.c 2014-07-15 23:15:59 -07:00
bond_options.c bonding: remove pr_fmt from bond_options.c 2014-07-15 23:16:06 -07:00
bond_options.h bonding: make a generic sysfs option store and fix comments 2014-05-09 16:12:51 -04:00
bond_procfs.c bonding: convert bond_procfs.c to use netdev_printk instead of pr_ 2014-07-15 23:15:59 -07:00
bond_sysfs_slave.c bonding: use kobject_put instead of _del after kobject_add 2014-07-31 11:16:09 -07:00
bond_sysfs.c bonding: use rcu_access_pointer() in bonding_show_mii_status() 2014-07-15 17:49:41 -07:00
bonding.h bonding: make it possible to have unlimited nested upper vlans 2014-07-20 20:35:00 -07:00
Makefile bonding: add sysfs /slave dir for bond slave devices. 2014-01-17 18:51:58 -08:00