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>
                return;
        }
 
-       fseek(file, 0, SEEK_END);
+       if (fseek(file, 0, SEEK_END) < 0) {
+               printf("Fail to get file size.\n");
+               return;
+       }
        size = ftell(file);
-       fseek(file, 0, SEEK_SET);
+       if (fseek(file, 0, SEEK_SET) < 0) {
+               printf("Fail to get file size.\n");
+               return;
+       }
 
        /**
         * No FIFO now. Only test memory. Limit sending file