commit | 666bb0cfb96098472aac5b67cd4b1f6bf9eddef5 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Fri Jul 26 13:17:49 2024 +0800 |
committer | developer <developer@mediatek.com> | Thu Aug 01 09:48:57 2024 +0800 |
tree | b7f49f1bebe2a7cc8355405186ff60475f4d91e0 | |
parent | 4bf03d69f0eb5f353c1dfc7f694ed0a26d1842cf [diff] |
[][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); }