|WARNING| pw112145 [PATCH] common/cnxk: add lower bound check for SSO resources

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Wed Jun 1 01:29:16 CEST 2022


Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/112145

_apply patch failure_

Submitter: Hanumanth Pothula <hpothula at marvell.com>
Date: Tuesday, May 31 2022 12:19:50 
Applied on: CommitID:f62212d39a1b5f1118dabbdfcbae1ac6394291a7
Apply patch set 112145 failed:

Checking patch drivers/common/cnxk/roc_sso.c...
error: while searching for:
	struct sso_lf_alloc_rsp *rsp_hwgrp;
	int rc;

	if (roc_sso->max_hwgrp < nb_hwgrp)
		return -ENOENT;
	if (roc_sso->max_hws < nb_hws)
		return -ENOENT;

	rc = sso_rsrc_attach(roc_sso, SSO_LF_TYPE_HWS, nb_hws);

error: patch failed: drivers/common/cnxk/roc_sso.c:598
Applying patch drivers/common/cnxk/roc_sso.c with 1 reject...
Rejected hunk #1.
diff a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/roc_sso.c	(rejected hunks)
@@ -598,9 +598,9 @@ roc_sso_rsrc_init(struct roc_sso *roc_sso, uint8_t nb_hws, uint16_t nb_hwgrp)
 	struct sso_lf_alloc_rsp *rsp_hwgrp;
 	int rc;
 
-	if (roc_sso->max_hwgrp < nb_hwgrp)
+	if (!nb_hwgrp || roc_sso->max_hwgrp < nb_hwgrp)
 		return -ENOENT;
-	if (roc_sso->max_hws < nb_hws)
+	if (!nb_hws || roc_sso->max_hws < nb_hws)
 		return -ENOENT;
 
 	rc = sso_rsrc_attach(roc_sso, SSO_LF_TYPE_HWS, nb_hws);

https://lab.dpdk.org/results/dashboard/patchsets/22373/

UNH-IOL DPDK Community Lab


More information about the test-report mailing list