Skip to contentSkip to conversation

drivers/exynos4210: Return -ENOMEM when ioremap has failed

PATCH In review Julien Grall 2 participants 2 messages May 22, 2013 – May 23, 2013 Arm Samsung Exynos

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/exynos4210: Return -ENOMEM when ioremap has failed

---
 xen/drivers/char/exynos4210-uart.c |    1 +
 1 file changed, 1 insertion(+)
xen/drivers/char/exynos4210-uart.c +1 -0
index f151390..f7971da 100644
@@ -328,6 +328,7 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev,
     if ( !uart->regs )
     {
         early_printk("exynos4210: Unable to map the UART memory\n");
+        return -ENOMEM;
     }
     res = dt_device_get_irq(dev, 0, &uart->irq);
     if ( res )
Signature · 1 line
1.7.10.4