Julien Grall
2013-May-22 11:43 UTC
[PATCH] drivers/exynos4210: Return -ENOMEM when ioremap has failed
Signed-off-by: Julien Grall <julien.grall@linaro.org> --- xen/drivers/char/exynos4210-uart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/char/exynos4210-uart.c b/xen/drivers/char/exynos4210-uart.c index f151390..f7971da 100644 --- a/xen/drivers/char/exynos4210-uart.c +++ b/xen/drivers/char/exynos4210-uart.c @@ -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 ) -- 1.7.10.4