net/ipn3ke: fix null pointer dereference
authorAndy Pei <andy.pei@intel.com>
Thu, 23 May 2019 04:31:22 +0000 (12:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commitad57c785c8535d71c1ebf7dc88dfb0f17e57b6c6
treee9a99d1ab4ee16f9c1d7fb4379b4f4638c45137c
parent320eecbc7f3d7fce7533482418d37803754bf533
net/ipn3ke: fix null pointer dereference

In 'ipn3ke_hw_tm_node_wr()', elements of 'n->parent_node' are accessed
but 'n->parent_node' can be NULL.

After applying this patch, this null pointer dereference is avoided.

Coverity issue: 337921
Fixes: c820468ac99c ("net/ipn3ke: support TM")
Cc: stable@dpdk.org
Signed-off-by: Andy Pei <andy.pei@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/net/ipn3ke/ipn3ke_tm.c