net/atlantic: fix buffer overflow
authorPavel Belous <pavel.belous@aquantia.com>
Tue, 12 Mar 2019 15:24:57 +0000 (15:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Mar 2019 17:15:42 +0000 (18:15 +0100)
commite09a7bee7772d39e57537a7564c9d58ed028ffcf
treefdec90c6f4ef2a80fef8ef17e1f9daa0c2ed97a1
parent0b504bcfefc29fbafd9278603022093df401a85f
net/atlantic: fix buffer overflow

Found by Coverity scan. This is a real memory corruption.
There is no need in extra RTE_ALIGN macros since the
request/result structures are 4-byte aligned by definition.

Coverity issue: 323518, 323520
Fixes: ce4e8d418097 ("net/atlantic: implement EEPROM get/set")
Cc: stable@dpdk.org
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
drivers/net/atlantic/hw_atl/hw_atl_utils_fw2x.c