summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/v0/pa.c2
-rw-r--r--src/v1/pa.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/v0/pa.c b/src/v0/pa.c
index c94bbd6..021d410 100644
--- a/src/v0/pa.c
+++ b/src/v0/pa.c
@@ -2979,7 +2979,7 @@ paReturn_t Pa_addIp2 (Pa_Handle iHandle,
2979 if (params->validBitMap & pa_PARAM_VALID_CTRLBITMAP) { 2979 if (params->validBitMap & pa_PARAM_VALID_CTRLBITMAP) {
2980 /* Check if replace command is set */ 2980 /* Check if replace command is set */
2981 if (params->ctrlBitMap & pa_PARAM_CTRL_REPLACE) { 2981 if (params->ctrlBitMap & pa_PARAM_CTRL_REPLACE) {
2982 paL3Entry_t *l3EntryRep = (paL3Entry_t *) *retHandle; 2982 paL3Entry_t *l3EntryRep = (paL3Entry_t *) pa_CONV_OFFSET_TO_BASE(paLObj.cfg.instPoolBaseAddr, *retHandle);
2983 /* If the replace index entry provided is not active, 2983 /* If the replace index entry provided is not active,
2984 * flag the error to application 2984 * flag the error to application
2985 * Also, The replace index requested can not be 2985 * Also, The replace index requested can not be
diff --git a/src/v1/pa.c b/src/v1/pa.c
index 89c49c8..2bb3015 100644
--- a/src/v1/pa.c
+++ b/src/v1/pa.c
@@ -2830,7 +2830,7 @@ paReturn_t Pa_getLUT1Info ( Pa_Handle iHandle,
2830 paHandleL2L3_t l2l3handle, 2830 paHandleL2L3_t l2l3handle,
2831 paLUT1Info_t *lut1Info) 2831 paLUT1Info_t *lut1Info)
2832{ 2832{
2833 paL2L3Header_t *hdr = (paL2L3Header_t *) l2l3handle; /* L2L3 header, Must be first entry */ 2833 paL2L3Header_t *hdr = (paL2L3Header_t *) pa_CONV_OFFSET_TO_BASE(paLObj.cfg.instPoolBaseAddr,l2l3handle); /* L2L3 header, Must be first entry */
2834 paReturn_t ret = pa_OK; 2834 paReturn_t ret = pa_OK;
2835 2835
2836 /* To get pass warnings of un-used variables */ 2836 /* To get pass warnings of un-used variables */
@@ -5210,7 +5210,9 @@ paReturn_t Pa_addAcl (Pa_Handle iHandle,
5210 } 5210 }
5211 5211
5212 /* Insert the entry to the Link List */ 5212 /* Insert the entry to the Link List */
5213 ret1 = pa_insert_entry(listElemTable, paInst->nAcl, listInfoTable, insertMode, nextEntry, i, &priority, *retHandle); 5213 ret1 = pa_insert_entry(listElemTable, paInst->nAcl, listInfoTable, insertMode,
5214 (paHandleAcl_t) (nextEntry?pa_CONV_BASE_TO_OFFSET(paLObj.cfg.instPoolBaseAddr,nextEntry):0),
5215 i, &priority, *retHandle);
5214 5216
5215 if (ret1 != pa_OK) { 5217 if (ret1 != pa_OK) {
5216 ret = ret1; 5218 ret = ret1;