port: fix crash for ring writer nodrop
authorJasvinder Singh <jasvinder.singh@intel.com>
Wed, 2 Mar 2016 21:19:58 +0000 (21:19 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Mar 2016 10:52:39 +0000 (11:52 +0100)
commitfa11a8a7251e14eca0a4190128732386f13551bd
tree444f2f035239e98ee62435affbb61823955d595e
parent04f366906ab395c8047bebfc1ddea244dfcb40f5
port: fix crash for ring writer nodrop

Error log:
 [APP] Initializing PIPELINE0 ...
 pipeline> [APP] Initializing PIPELINE1 ...
 [PIPELINE1] Pass-through
 [APP] Initializing PIPELINE2 ...
 [PIPELINE2] Pass-through
 Segmentation fault (core dumped)

Fixes: 5f4cd47309d6 ("port: add ring writer nodrop")
Fixes: d58f69c54172 ("port: add ring multi reader or writer")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
lib/librte_port/rte_port_ring.c