This building issue is caused by the merge of stable kernel commit
7027c890ff6b ("firmware: stratix10-svc: fix a missing check on list
iterator") that conflicts with sdk patch. So, adjust code to merge
sdk patch and upstream commit together.Signed-off-by: Meng Li <[email protected]> Signed-off-by: Carlos Dominguez <[email protected]> --- drivers/firmware/stratix10-svc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/stratix10-svc.c b/drivers/firmware/stratix10-svc.c index 6e24649aa9bf..d9d1e00367ea 100644 --- a/drivers/firmware/stratix10-svc.c +++ b/drivers/firmware/stratix10-svc.c @@ -1505,6 +1505,7 @@ void stratix10_svc_free_memory(struct stratix10_svc_chan *chan, void *kaddr) list_for_each_entry(pmem, &svc_data_mem, node) if (pmem->vaddr == kaddr) { + memset(kaddr, 0, pmem->size); gen_pool_free(chan->ctrl->genpool, (unsigned long)kaddr, pmem->size); pmem->vaddr = NULL; @@ -1512,10 +1513,7 @@ void stratix10_svc_free_memory(struct stratix10_svc_chan *chan, void *kaddr) return; } - memset(kaddr, 0, size); - gen_pool_free(chan->ctrl->genpool, (unsigned long)kaddr, size); - pmem->vaddr = NULL; - list_del(&pmem->node); + list_del(&svc_data_mem); } EXPORT_SYMBOL_GPL(stratix10_svc_free_memory); -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11461): https://lists.yoctoproject.org/g/linux-yocto/message/11461 Mute This Topic: https://lists.yoctoproject.org/mt/92359005/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
