bonding: use rcu_access_pointer() in bonding_show_mii_status()
authorEric Dumazet <edumazet@google.com>
Tue, 15 Jul 2014 13:56:54 +0000 (06:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2014 00:49:41 +0000 (17:49 -0700)
commitc2646b593eb127adc50e108649e4d34144e14c6c
treef4d5f0021ff65b54e41c32954d0bb6b940c10196
parente965f8049460569bab12fe7bb5381bb2279712e2
bonding: use rcu_access_pointer() in bonding_show_mii_status()

curr_active_slave is rcu protected, and bonding_show_mii_status() only
wants to check if pointer is NULL or not.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Veaceslav Falico <vfalico@gmail.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c