Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma
[linux-2.6.git] / drivers / dma / imx-sdma.c
index 1eb60ded2f0de21b29bdd672b3609f8a3b7d716b..7bd7e98548cd34e495910f093ee44e821c1de67b 100644 (file)
@@ -1305,8 +1305,10 @@ static int __init sdma_probe(struct platform_device *pdev)
                goto err_request_irq;
 
        sdma->script_addrs = kzalloc(sizeof(*sdma->script_addrs), GFP_KERNEL);
-       if (!sdma->script_addrs)
+       if (!sdma->script_addrs) {
+               ret = -ENOMEM;
                goto err_alloc;
+       }
 
        if (of_id)
                pdev->id_entry = of_id->data;