net/atlantic: check EEPROM dev address validity
authorIgor Russkikh <igor.russkikh@aquantia.com>
Mon, 29 Apr 2019 08:20:19 +0000 (08:20 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit99ceaad873059fd7a7ef4c8c5bf1575e64e880f9
tree3f534dcb343657f1857dcb9198b8fa75d3701dc0
parentd1093f66a89dda96fad87f33db4a5bd386fec84e
net/atlantic: check EEPROM dev address validity

Clients may not filling magic field, thus causing garbage
to be passed as a device address.

Limit that to maximum SMbus address.

Fixes: ce4e8d418097 ("net/atlantic: implement EEPROM get/set")
Cc: stable@dpdk.org
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
drivers/net/atlantic/atl_ethdev.c