crypto/cnxk: move IPsec SA creation to common
[dpdk.git] / drivers / common / cnxk / cnxk_telemetry_nix.c
index df64580..4119e9e 100644 (file)
@@ -765,6 +765,9 @@ cnxk_nix_tel_handle_info_x(const char *cmd, const char *params,
 
        plt_strlcpy(buf, params, PCI_PRI_STR_SIZE + 1);
        name = strtok(buf, ",");
+       if (name == NULL)
+               goto exit;
+
        param = strtok(NULL, "\0");
 
        node = nix_tel_node_get_by_pcidev_name(name);