diff options
author | Shai Malin <smalin@marvell.com> | 2021-08-24 19:52:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 11:47:46 +0200 |
commit | cda01d1da3b0ba663ac77acd9dc254762746ebfd (patch) | |
tree | 566e6f3a2e893b8596594e3243cc3558fb038664 /arch | |
parent | 47116bdde9f23af744f77ed4058475359289f3f0 (diff) | |
download | linux-stable-cda01d1da3b0ba663ac77acd9dc254762746ebfd.tar.gz linux-stable-cda01d1da3b0ba663ac77acd9dc254762746ebfd.tar.bz2 linux-stable-cda01d1da3b0ba663ac77acd9dc254762746ebfd.zip |
qede: Fix memset corruption
[ Upstream commit e543468869e2532f5d7926e8f417782b48eca3dc ]
Thanks to Kees Cook who detected the problem of memset that starting
from not the first member, but sized for the whole struct.
The better change will be to remove the redundant memset and to clear
only the msix_cnt member.
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Reported-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions