net/ice: add memory allocation check in RSS init
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 28 Jul 2020 13:11:27 +0000 (21:11 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commite40a84ebedf3d8f6ea00f6c10d0fc885a8163d43
tree6854c67a79e291a2d200b002f5d04ad39aff3a32
parent5d4a54fd1646585adfedb1675e78a513cf194b25
net/ice: add memory allocation check in RSS init

The function rte_zmalloc() could return NULL, the return
value need to be checked.

Fixes: 50370662b727 ("net/ice: support device and queue ops")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c