net/e1000: fix null pointer check
authorYong Wang <wang.yong19@zte.com.cn>
Thu, 25 Jan 2018 07:43:04 +0000 (02:43 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit516e525ebfcf9875c86eb5ce88a536470e279739
treed9b0e1b0d5eee4e5c6d469bbc7f751efd6cbe6cb
parent8cc99ad1db467d41a946d038c6f72a8983cb707b
net/e1000: fix null pointer check

There are several func calls to rte_zmalloc() which don't have null
pointer check for the return value. It fixes that by adding null
pointer check.

Fixes: 22bb13410cb2 ("net/igb: create consistent filter")
Cc: stable@dpdk.org
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/igb_flow.c