
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IC914B CVE: NA -------------------------------- Commit 59d8ee55652a delete 'buf_desc->is_dma_need_sync = 0;' inadvertently. Partially revert the commit. Fixes: 59d8ee55652a ("net/smc: Clear memory when release and reuse buffer") Signed-off-by: Wang Liang <wangliang74@huawei.com> --- net/smc/smc_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c index 5312ca02a3e4..254d4c89e520 100644 --- a/net/smc/smc_core.c +++ b/net/smc/smc_core.c @@ -2256,6 +2256,7 @@ static int __smc_buf_create(struct smc_sock *smc, bool is_smcd, bool is_rmb) /* check for reusable slot in the link group */ buf_desc = smc_buf_get_slot(bufsize, lock, buf_list); if (buf_desc) { + buf_desc->is_dma_need_sync = 0; SMC_STAT_RMB_SIZE(is_smcd, is_rmb, bufsize); SMC_STAT_BUF_REUSE(is_smcd, is_rmb); break; /* found reusable slot */ -- 2.34.1