Skip to contentSkip to conversation

Patch "dmaengine: ti-dma-crossbar: Add some 'of_node_put()' in error path." has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Aug 4, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

dmaengine: ti-dma-crossbar: Add some 'of_node_put()' in error path.

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
dmaengine-ti-dma-crossbar-add-some-of_node_put-in-error-path.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From foo@baz Fri Aug 4 15:15:51 PDT 2017

From: Christophe JAILLET <[email protected]>
Date: Mon, 19 Dec 2016 06:33:51 +0100
Subject: dmaengine: ti-dma-crossbar: Add some 'of_node_put()' in error path.

From: Christophe JAILLET <[email protected]>

[ Upstream commit 75bdc7f31a3a6e9a12e218b31a44a1f54a91554c ]

Add some missing 'of_node_put()' in early exit error path.

---
 drivers/dma/ti-dma-crossbar.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/dma/ti-dma-crossbar.c +2 -0
@@ -146,6 +146,7 @@ static int ti_am335x_xbar_probe(struct p
 	match = of_match_node(ti_am335x_master_match, dma_node);
 	if (!match) {
 		dev_err(&pdev->dev, "DMA master is not supported\n");
+		of_node_put(dma_node);
 		return -EINVAL;
 	}
 
@@ -310,6 +311,7 @@ static int ti_dra7_xbar_probe(struct pla
 	match = of_match_node(ti_dra7_master_match, dma_node);
 	if (!match) {
 		dev_err(&pdev->dev, "DMA master is not supported\n");
+		of_node_put(dma_node);
 		return -EINVAL;
 	}
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/dmaengine-ti-dma-crossbar-add-some-of_node_put-in-error-path.patch