diff options
Diffstat (limited to 'drivers/dma')
-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 b6d1455fa936..ec53980f8fcf 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -1281,8 +1281,10 @@ static int __init sdma_probe(struct platform_device *pdev) | |||
1281 | goto err_request_irq; | 1281 | goto err_request_irq; |
1282 | 1282 | ||
1283 | sdma->script_addrs = kzalloc(sizeof(*sdma->script_addrs), GFP_KERNEL); | 1283 | sdma->script_addrs = kzalloc(sizeof(*sdma->script_addrs), GFP_KERNEL); |
1284 | if (!sdma->script_addrs) | 1284 | if (!sdma->script_addrs) { |
1285 | ret = -ENOMEM; | ||
1285 | goto err_alloc; | 1286 | goto err_alloc; |
1287 | } | ||
1286 | 1288 | ||
1287 | sdma->version = pdata->sdma_version; | 1289 | sdma->version = pdata->sdma_version; |
1288 | 1290 | ||