[dpdk-stable] patch 'net/sfc/base: fix invalid order of memset arguments' has been queued to stable release 18.08.1

Kevin Traynor ktraynor at redhat.com
Wed Nov 21 17:03:52 CET 2018


Hi,

FYI, your patch has been queued to stable release 18.08.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/26/18. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the patch applied
to the branch. If the code is different (ie: not only metadata diffs), due for example to
a change in context or macro names, please double check it.

Thanks.

Kevin Traynor

---
>From 1c8adca23bf84e9312cfe74d25017090bd3293d0 Mon Sep 17 00:00:00 2001
From: Martin Harvey <mharvey at solarflare.com>
Date: Mon, 10 Sep 2018 10:33:01 +0100
Subject: [PATCH] net/sfc/base: fix invalid order of memset arguments

[ upstream commit b1c25748ddf5dcec834eed4d1e97068ebe5e2409 ]

Found by PreFAST.

Fixes: 3f2f0189dd44 ("net/sfc/base: add signed image layout support")

Signed-off-by: Martin Harvey <mharvey at solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 drivers/net/sfc/base/ef10_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/sfc/base/ef10_image.c b/drivers/net/sfc/base/ef10_image.c
index 6fb7e4764..0d8898762 100644
--- a/drivers/net/sfc/base/ef10_image.c
+++ b/drivers/net/sfc/base/ef10_image.c
@@ -705,5 +705,5 @@ efx_build_signed_image_write_buffer(
 	 */
 	/* END CSTYLED */
-	memset(bufferp, buffer_size, 0xFF);
+	memset(bufferp, 0xFF, buffer_size);
 
 	EFX_STATIC_ASSERT(sizeof (chunk_hdr) == SIGNED_IMAGE_CHUNK_HDR_LEN);
-- 
2.19.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2018-11-21 15:59:13.676570117 +0000
+++ 0002-net-sfc-base-fix-invalid-order-of-memset-arguments.patch	2018-11-21 15:59:13.000000000 +0000
@@ -1,12 +1,13 @@
-From b1c25748ddf5dcec834eed4d1e97068ebe5e2409 Mon Sep 17 00:00:00 2001
+From 1c8adca23bf84e9312cfe74d25017090bd3293d0 Mon Sep 17 00:00:00 2001
 From: Martin Harvey <mharvey at solarflare.com>
 Date: Mon, 10 Sep 2018 10:33:01 +0100
 Subject: [PATCH] net/sfc/base: fix invalid order of memset arguments
 
+[ upstream commit b1c25748ddf5dcec834eed4d1e97068ebe5e2409 ]
+
 Found by PreFAST.
 
 Fixes: 3f2f0189dd44 ("net/sfc/base: add signed image layout support")
-Cc: stable at dpdk.org
 
 Signed-off-by: Martin Harvey <mharvey at solarflare.com>
 Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>


More information about the stable mailing list