net/sfc/base: fix invalid order of memset arguments
Found by PreFAST.
Fixes: 3f2f0189dd
("net/sfc/base: add signed image layout support")
Cc: stable@dpdk.org
Signed-off-by: Martin Harvey <mharvey@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
parent
f394c63d2d
commit
b1c25748dd
@ -704,7 +704,7 @@ efx_build_signed_image_write_buffer(
|
||||
* results in the layout used for the data chunks and chunk headers.
|
||||
*/
|
||||
/* END CSTYLED */
|
||||
memset(bufferp, buffer_size, 0xFF);
|
||||
memset(bufferp, 0xFF, buffer_size);
|
||||
|
||||
EFX_STATIC_ASSERT(sizeof (chunk_hdr) == SIGNED_IMAGE_CHUNK_HDR_LEN);
|
||||
memset(&chunk_hdr, 0, SIGNED_IMAGE_CHUNK_HDR_LEN);
|
||||
|
Loading…
Reference in New Issue
Block a user