]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Copy the right amount of memory
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 24 Oct 2018 08:32:21 +0000 (11:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Oct 2018 21:24:28 +0000 (14:24 -0700)
commit153f65ee137f47f881e96bf86fa2f94a86b6826e
treef9e1512da8c18563498a2e7ecf6be537a7afcd7c
parent4877977fcf6c5498a298ef3c532027f8c96e77b3
octeontx2-af: Copy the right amount of memory

This is a copy and paste bug where we copied the sizeof() from the chunk
before.  We're copying more data than intended but the destination is a
union so it doesn't cause memory corruption.

Fixes: 74656ce70da1 ("octeontx2-af: NIX AQ instruction enqueue support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c