diff --git a/[refs] b/[refs] index 0cb320fafb04..7a4859b33d35 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: af31826d9b1ce432e033f0e91529aa1013076482 +refs/heads/master: f22eb1402244885126c4263eb36b857e4182dd6f diff --git a/trunk/drivers/dma/of-dma.c b/trunk/drivers/dma/of-dma.c index 8266893fef45..2882403a39cf 100644 --- a/trunk/drivers/dma/of-dma.c +++ b/trunk/drivers/dma/of-dma.c @@ -221,12 +221,13 @@ struct dma_chan *of_dma_request_slave_channel(struct device_node *np, ofdma = of_dma_get_controller(&dma_spec); - if (!ofdma) - continue; - - chan = ofdma->of_dma_xlate(&dma_spec, ofdma); + if (ofdma) { + chan = ofdma->of_dma_xlate(&dma_spec, ofdma); - of_dma_put_controller(ofdma); + of_dma_put_controller(ofdma); + } else { + chan = NULL; + } of_node_put(dma_spec.np);