RDMA/i40iw: Fix a race condition
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:49:02 +0000 (10:49 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 15 Oct 2017 00:47:06 +0000 (20:47 -0400)
commitb965b51c55c5a21d65ca36592c6048ea60c3ace9
treecf809d38461907347cce99f54a03b0df0d1e53d4
parentd61d6de0744ffc294cb50a3c1952ef383676d440
RDMA/i40iw: Fix a race condition

Use the proper primitives to dereference the RCU pointer
upper_dev->ip_ptr. Compile-tested only.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_utils.c