[][openwrt][mt7988][pce][Fix PCE freeing wrong cdrt idx bug]

[Description]
Fix PCE freeing wrong cdrt idx bug

[Release-log]
N/A

Change-Id: I4c527d1c10b1af391297accba6762964a940bedf
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9409294
diff --git a/feed/kernel/pce/src/cdrt.c b/feed/kernel/pce/src/cdrt.c
index 2600082..8042ecf 100644
--- a/feed/kernel/pce/src/cdrt.c
+++ b/feed/kernel/pce/src/cdrt.c
@@ -216,9 +216,9 @@
 	spin_lock_irqsave(&cdrt_hw.lock, flag);
 
 	if (cdrt->type == CDRT_ENCRYPT)
-		clear_bit(cdrt->idx, cdrt_hw.enc_used);
+		clear_bit(cdrt->idx - CDRT_ENC_IDX_OFS, cdrt_hw.enc_used);
 	else
-		clear_bit(cdrt->idx, cdrt_hw.dec_used);
+		clear_bit(cdrt->idx - CDRT_DEC_IDX_OFS, cdrt_hw.dec_used);
 
 	spin_unlock_irqrestore(&cdrt_hw.lock, flag);
 }