ethdev: validate input in EEPROM info
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 2 Apr 2021 02:58:50 +0000 (10:58 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 7 Apr 2021 22:26:39 +0000 (00:26 +0200)
commit18239da4ac2155582d91d4ccb8ed8b2193193534
tree03ae9dd43bed65257b6c010f856a5ac0536fe445
parent94af45f4005ee0c3152db45a3669bec5238a3c10
ethdev: validate input in EEPROM info

This patch adds validity check of input pointer in EEPROM dump API.

Fixes: 7a3f27cbf59b ("ethdev: add access to specific device info")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h