net/ena/base: prevent allocation of zero sized memory
authorIgor Chauskin <igorch@amazon.com>
Wed, 8 Apr 2020 08:28:54 +0000 (10:28 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commit29dc10d9424ccf26a346387b0a707185e2432400
tree1fdb9123119abe69c853a6f5b9e2ca1638373652
parentb14fcac035fd8514851c9140a4e26d765b61c532
net/ena/base: prevent allocation of zero sized memory

rte_memzone_reserve() will reserve the biggest contiguous memzone
available if received 0 as size param.

Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK")
Cc: stable@dpdk.org
Signed-off-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
drivers/net/ena/base/ena_plat_dpdk.h