af_packet: fix memory allocation checks
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Thu, 18 Dec 2014 09:45:05 +0000 (09:45 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 18 Dec 2014 21:52:39 +0000 (22:52 +0100)
commit74ab022182e82faeb89fc99d8ce3e1c4be7f776e
tree928965c7c2d5019ecd3cd8860a343f2b9efcc0e4
parent53d81e2d436a0340e985280701ff541501b95a8a
af_packet: fix memory allocation checks

In rte_eth_af_packet.c we are we are missing NULL pointer
checks after calls to allocate memory for queues.
Add checking NULL pointer and error handling.

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_pmd_af_packet/rte_eth_af_packet.c