diff options
author | Shiraz Saleem <shiraz.saleem@intel.com> | 2020-02-04 16:38:40 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-02-11 14:31:11 -0400 |
commit | 9a4b24108d92ffaa886e37923088bd806b988948 (patch) | |
tree | 5777aec1303d8f6294df925fdb48a1d8537bbb76 /drivers/infiniband/sw | |
parent | d7e2d3432ae7795e5b77a77039e904ed4a769f39 (diff) |
i40iw: Do an RCU lookup in i40iw_add_ipv4_addr
The in_dev_for_each_ifa_rtnl() iterator in i40iw_add_ipv4_addr requires
that the rtnl lock be held. But the rtnl_trylock/unlock scheme in this
function does not guarantee it.
Replace the rtnl locking with an RCU lookup using
in_dev_for_each_ifa_rcu()
Fixes: 8e06af711bf2 ("i40iw: add main, hdr, status")
Link: https://lore.kernel.org/r/20200204223840.2151-1-shiraz.saleem@intel.com
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw')
0 files changed, 0 insertions, 0 deletions