examples/ntb: fix error handling
authorXiaoyun Li <xiaoyun.li@intel.com>
Mon, 5 Aug 2019 05:57:28 +0000 (13:57 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Aug 2019 08:40:54 +0000 (10:40 +0200)
commit440af660ff83271acc747cfc2482c38c88beb59c
tree6c1aea51e5012f50c466cc8ca9e07ffcfb672913
parent78eef20796bcd005b878abe9e8b243f0cf02a937
examples/ntb: fix error handling

This patch adds return value checking for fseek function to fix
error handling issue found by coverity scan.

Coverity issue: 344996
Fixes: c5eebf85badc ("examples/ntb: add example for NTB")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
examples/ntb/ntb_fwd.c