i40iw: Use correct src address in memcpy to rdma stats counters
authorShiraz Saleem <shiraz.saleem@intel.com>
Fri, 11 Nov 2016 16:55:41 +0000 (10:55 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:22:00 +0000 (08:22 +0100)
commitc75bc2bde1025ed047ba7f33d7509c76231f47ce
tree3aeade9c0c769c4aa8e2995c8e45fd8dbea96a07
parent7d0a6cf3e8c952ef0ace732317148c247d4957a4
i40iw: Use correct src address in memcpy to rdma stats counters

commit 91c42b72f8e8b45961ff05a05009b644e6316ca2 upstream.

hw_stats is a pointer to i40_iw_dev_stats struct in i40iw_get_hw_stats().
Use hw_stats and not &hw_stats in the memcpy to copy the i40iw device stats
data into rdma_hw_stats counters.

Fixes: b40f4757daa1 ("IB/core: Make device counter infrastructure dynamic")
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/i40iw/i40iw_verbs.c