Loading lib/nvme/nvme.c +5 −2 Original line number Diff line number Diff line Loading @@ -494,9 +494,12 @@ spdk_nvme_transport_id_parse(struct spdk_nvme_transport_id *trid, const char *st sep = strchr(str, ':'); if (!sep) { SPDK_ERRLOG("Key without : separator\n"); sep = strchr(str, '='); if (!sep) { SPDK_ERRLOG("Key without ':' or '=' separator\n"); return -EINVAL; } } key_len = sep - str; if (key_len >= sizeof(key)) { Loading Loading
lib/nvme/nvme.c +5 −2 Original line number Diff line number Diff line Loading @@ -494,9 +494,12 @@ spdk_nvme_transport_id_parse(struct spdk_nvme_transport_id *trid, const char *st sep = strchr(str, ':'); if (!sep) { SPDK_ERRLOG("Key without : separator\n"); sep = strchr(str, '='); if (!sep) { SPDK_ERRLOG("Key without ':' or '=' separator\n"); return -EINVAL; } } key_len = sep - str; if (key_len >= sizeof(key)) { Loading