]> git.droids-corp.org - dpdk.git/blobdiff - examples/vhost_blk/vhost_blk.c
test/telemetry: fix typo at beginning of line
[dpdk.git] / examples / vhost_blk / vhost_blk.c
index f4c59437a035f3fc01b7f70787292299d0f957af..8f5d61a5898cb86cff7be8d58e7ed62177bff39f 100644 (file)
@@ -877,7 +877,11 @@ int main(int argc, char *argv[])
 
        signal(SIGINT, signal_handler);
 
-       rte_vhost_driver_start(dev_pathname);
+       ret = rte_vhost_driver_start(dev_pathname);
+       if (ret < 0) {
+               fprintf(stderr, "Failed to start vhost driver.\n");
+               return -1;
+       }
 
        /* loop for exit the application */
        while (1)