]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Dec 2016 22:19:02 +0000 (17:19 -0500)
commit16c2f7aaa06f78be41ef760505f67199c91fa1e0
tree5b37909fbd5ae2dba23f942c3d0e1a367aa6875b
parent9cb751853df4872fc27554efbf7ba06951397f97
i40iw: Use correct src address in memcpy to rdma stats counters

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: 7ea198ec30a4 ("IB/core: Make device counter infrastructure dynamic")
Cc: stable@vger.kernel.org # 4.7+
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>
drivers/infiniband/hw/i40iw/i40iw_verbs.c