hash: fix out-of-memory handling in hash creation
hash: fix out-of-memory handling in hash creation

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

Fixes: 5915699153d7 ("hash: fix scaling by reducing contention")
Cc: stable@dpdk.org

Reported-by: Bin Huang <b4fc2609713a1f6debaa0568c95309a7625cc88c@huawei.com>
Signed-off-by: Yunjian Wang <9985a735d5d5f80ef648228b285228d6eb6eaf45@huawei.com>
Reviewed-by: Honnappa Nagarahalli <01ccf438b971cc1d8919c8a7f18443cae9429d8b@arm.com>
Acked-by: Yipeng Wang <7cbe00ff6364999b5548d30abb0722f7c2a7092c@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk