net/qede: fix possible null pointer dereference
authorRongQiang Xie <xie.rongqiang@zte.com.cn>
Thu, 24 Aug 2017 07:12:33 +0000 (15:12 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:47 +0000 (02:49 +0200)
commitef86e67ad5d873573882e19d92a206a842d22927
tree004d993e6a7cca52d3cd56d394886fe12303f350
parent495ca7888ad94d43d8ba477ab0c1bb319d3f66a3
net/qede: fix possible null pointer dereference

In function qede_rss_reta_update(), the pointer params returned from
call to function rte_zmalloc() may be NULL and will be dereferenced.
So, should judge if the params is NULL or not.

Fixes: 8b3ee85efe11 ("net/qede: fix RSS table entries for 100G adapter")
Cc: stable@dpdk.org
Signed-off-by: RongQiang Xie <xie.rongqiang@zte.com.cn>
Acked-by: Harish Patil <harish.patil@cavium.com>
drivers/net/qede/qede_ethdev.c