Spdk/lib/vhost
Ben Walker 0692768e69 vhost: Fix negative array index use in spdk_vhost_set_socket_path
If basename was the string "", with length 0, it would have
resulted in accessing index -1 in dev_dirname.

Change-Id: Ib389f8fe220f5335a54f6a155a20fcca35b94e3e
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/408253
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-04-19 15:48:36 -04:00
..
rte_vhost vhost: fix indentation in vhost_user.h 2018-04-10 15:43:26 -04:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost: Check for null pointers in vhost_blk 2018-04-19 00:08:21 -04:00
vhost_internal.h vhost: add JSON config dump 2018-04-16 19:27:33 -04:00
vhost_nvme.c vhost: add JSON config dump 2018-04-16 19:27:33 -04:00
vhost_rpc.c vhost: add JSON config dump 2018-04-16 19:27:33 -04:00
vhost_scsi.c vhost: Handle null pointer when dumping SCSI JSON config 2018-04-19 00:08:21 -04:00
vhost.c vhost: Fix negative array index use in spdk_vhost_set_socket_path 2018-04-19 15:48:36 -04:00