diff options
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 1eb60ded2f0d..7bd7e98548cd 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1305,8 +1305,10 @@ static int __init sdma_probe(struct platform_device *pdev) | |||
1305 | goto err_request_irq; | 1305 | goto err_request_irq; |
1306 | 1306 | ||
1307 | sdma->script_addrs = kzalloc(sizeof(*sdma->script_addrs), GFP_KERNEL); | 1307 | sdma->script_addrs = kzalloc(sizeof(*sdma->script_addrs), GFP_KERNEL); |
1308 | if (!sdma->script_addrs) | 1308 | if (!sdma->script_addrs) { |
1309 | ret = -ENOMEM; | ||
1309 | goto err_alloc; | 1310 | goto err_alloc; |
1311 | } | ||
1310 | 1312 | ||
1311 | if (of_id) | 1313 | if (of_id) |
1312 | pdev->id_entry = of_id->data; | 1314 | pdev->id_entry = of_id->data; |