Coverity validly points out that the mfn_add() as used was dead code.
Coverity ID: 1507475
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/arch/x86/pv/dom0_build.c
+++ b/xen/arch/x86/pv/dom0_build.c
@@ -130,7 +130,7 @@ static void __init iommu_memory_setup(st
IOMMUF_readable | IOMMUF_writable | IOMMUF_preempt,
flush_flags)) > 0 )
{
- mfn_add(mfn, rc);
+ mfn = mfn_add(mfn, rc);
nr -= rc;
/* See comment below. */
for ( ; rc--; ++page )
On 27/07/2022 11:41, Jan Beulich wrote: > Coverity validly points out that the mfn_add() as used was dead code. > > Coverity ID: 1507475 > Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
On 27/07/2022 11:44, Andrew Cooper wrote: > On 27/07/2022 11:41, Jan Beulich wrote: >> Coverity validly points out that the mfn_add() as used was dead code. >> >> Coverity ID: 1507475 >> Signed-off-by: Jan Beulich <jbeulich@suse.com> > Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> Although on second thoughts, this needs a fixes c1e1564c8995d tag too. ~Andrew
On 27.07.2022 12:46, Andrew Cooper wrote: > On 27/07/2022 11:44, Andrew Cooper wrote: >> On 27/07/2022 11:41, Jan Beulich wrote: >>> Coverity validly points out that the mfn_add() as used was dead code. >>> >>> Coverity ID: 1507475 >>> Signed-off-by: Jan Beulich <jbeulich@suse.com> >> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> > > Although on second thoughts, this needs a fixes c1e1564c8995d tag too. Oh, of course. Jan
© 2016 - 2024 Red Hat, Inc.