Skip to contentSkip to conversation

Patch "i40iw: Use correct src address in memcpy to rdma stats counters" has been added to the 4.8-stable tree

PATCH [email protected] 1 participant 1 message Jan 6, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

i40iw: Use correct src address in memcpy to rdma stats counters

to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
i40iw-use-correct-src-address-in-memcpy-to-rdma-stats-counters.patch
and it can be found in the queue-4.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 91c42b72f8e8b45961ff05a05009b644e6316ca2 Mon Sep 17 00:00:00 2001

From: Shiraz Saleem <[email protected]>
Date: Fri, 11 Nov 2016 10:55:41 -0600
Subject: i40iw: Use correct src address in memcpy to rdma stats counters

From: Shiraz Saleem <[email protected]>

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")
---
 drivers/infiniband/hw/i40iw/i40iw_verbs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/i40iw/i40iw_verbs.c +1 -1
@@ -2501,7 +2501,7 @@ static int i40iw_get_hw_stats(struct ib_
 			return -ENOSYS;
 	}
 
-	memcpy(&stats->value[0], &hw_stats, sizeof(*hw_stats));
+	memcpy(&stats->value[0], hw_stats, sizeof(*hw_stats));
 
 	return stats->num_counters;
 }

Patches currently in stable-queue which might be from [email protected] are

queue-4.8/i40iw-use-correct-src-address-in-memcpy-to-rdma-stats-counters.patch