[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] xen/arm: domain_build: Propagate return code of map_irq_to_domain()



commit 5b34e896a3c5fab474e5455d3a74932d46eb756a
Author:     Michal Orzel <michal.orzel@xxxxxxx>
AuthorDate: Thu May 11 15:02:17 2023 +0200
Commit:     Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Mon May 15 10:11:37 2023 +0100

    xen/arm: domain_build: Propagate return code of map_irq_to_domain()
    
    From map_dt_irq_to_domain() we are assigning a return code of
    map_irq_to_domain() to a variable without checking it for an error.
    Fix it by propagating the return code directly since this is the last
    call.
    
    Fixes: 467e5cbb2ffc ("xen: arm: consolidate mmio and irq mapping to dom0")
    Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
    Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx>
    Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>
    Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
 xen/arch/arm/domain_build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index f80fdd1af2..9dee1bb8f2 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -2320,7 +2320,7 @@ static int __init map_dt_irq_to_domain(const struct 
dt_device_node *dev,
 
     res = map_irq_to_domain(d, irq, !mr_data->skip_mapping, dt_node_name(dev));
 
-    return 0;
+    return res;
 }
 
 int __init map_range_to_domain(const struct dt_device_node *dev,
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.