examples/ip_pipeline: fix null pointer dereference
authorMarcin Kerlin <marcinx.kerlin@intel.com>
Mon, 13 Jun 2016 09:35:48 +0000 (11:35 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 14 Jun 2016 19:09:29 +0000 (21:09 +0200)
commit5fdb6c362182f4177a7dfe0e03ab88c936f74085
tree8d823b2496d619598964a3da07d9471629d4bccd
parentdf473bbc2abf56cc1d1bf556c7ae887ed66373bc
examples/ip_pipeline: fix null pointer dereference

Return value of function app_pipeline_type_find is not checking before
dereference. Fix this problem by adding checking condition.

Coverity issue: 127196
Fixes: b4aee0fb9c6d ("examples/ip_pipeline: reconfigure thread binding dynamically")

Signed-off-by: Marcin Kerlin <marcinx.kerlin@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/thread_fe.c