of: dma.c: fix memory leakage
Subsystems (2)
PATCH 1/1 of: dma.c: fix memory leakage
The memory allocated to ofdma might be a leakage when error occurs.
--- drivers/of/dma.c | 1 + 1 file changed, 1 insertion(+)
drivers/of/dma.c +1 -0
@@ -107,6 +107,7 @@ int of_dma_controller_register(struct device_node *np,if (!nbcells) {pr_err ("%s: #dma-cells property is missing or invalid\n" , __func__); +kfree (ofdma);return -EINVAL ; }
Signature · 1 line
1.7.10.4
Quoted 3 lines · Cong Ding
The memory allocated to ofdma might be a leakage when error occurs.
Signed-off-by Cong Ding <[email protected]>
You need to send this to whomever is working on DMA bindings.
Rob
Quoted 17 lines
--- drivers/of/dma.c | 1 + 1 file changed, 1 insertion(+)drivers/of/dma.c +1
-0@@ -107,6 +107,7 @@ int of_dma_controller_register(struct device_node *np,if (!nbcells) {pr_err ("%s: #dma-cells property is missing or invalid\n" , __func__); +kfree (ofdma);return -EINVAL ; }
Quoted 6 lines · Rob Herring
Quoted 3 lines · Cong Ding
The memory allocated to ofdma might be a leakage when error occurs.
Signed-off-by Cong Ding <[email protected]>You need to send this to whomever is working on DMA bindings.
Thank you bob, I added Vinod the the receiver list.
- cong
Quoted 18 lines
Quoted 18 lines
--- drivers/of/dma.c | 1 + 1 file changed, 1 insertion(+)drivers/of/dma.c +1
-0@@ -107,6 +107,7 @@ int of_dma_controller_register(struct device_node *np,if (!nbcells) {pr_err ("%s: #dma-cells property is missing or invalid\n" , __func__); +kfree (ofdma);return -EINVAL ; }
Quoted 8 lines · Cong Ding
Quoted 6 lines · Rob Herring
Quoted 3 lines · Cong Ding
The memory allocated to ofdma might be a leakage when error occurs.
Signed-off-by Cong Ding <[email protected]>You need to send this to whomever is working on DMA bindings.
Thank you bob, I added Vinod the the receiver list.
I have moved the of/dma.c to dma/of-dma.c, can you regenerate this patch and resend to me
--
~Vinod
Quoted 11 lines · Vinod Koul
Quoted 8 lines · Cong Ding
Quoted 6 lines · Rob Herring
Quoted 3 lines · Cong Ding
The memory allocated to ofdma might be a leakage when error occurs.
Signed-off-by Cong Ding <[email protected]>You need to send this to whomever is working on DMA bindings.
Thank you bob, I added Vinod the the receiver list.
I have moved the
of/dma.ctodma/of-dma.c, can you regenerate this patch and resend to me
Sorry Vinod, I didn't manage to get this commit from either linux-next tree or slave-dma tree, and the last commit by you for of/dma.c file is on Jan 7. Did you have any hints for me to get the latest version dma/of-dma.c?
- cong
Quoted 7 lines · Cong Ding
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
You need to send this to whomever is working on DMA bindings.
Thank you bob, I added Vinod the the receiver list.
I have moved the
of/dma.ctodma/of-dma.c, can you regenerate this patch and resend to meSorry Vinod, I didn't manage to get this commit from either linux-next tree or slave-dma tree, and the last commit by you for
of/dma.cfile is on Jan 7. Did you have any hints for me to get the latest versiondma/of-dma.c?
AH my bad, seems i have not pushed it out :(
Pushed now...
PATCH v2 1/1 dma: of-dma.c: fix memory leakage
In reply to Vinod KoulThe memory allocated to ofdma might be a leakage when error occurs.
--- drivers/dma/of-dma.c | 1 + 1 file changed, 1 insertion(+)
drivers/dma/of-dma.c +1 -0
@@ -107,6 +107,7 @@ int of_dma_controller_register(struct device_node *np,if (!nbcells) {pr_err ("%s: #dma-cells property is missing or invalid\n" , __func__); +kfree (ofdma);return -EINVAL ; }
Signature · 1 line
1.7.9.5
Vinod Koul
AppliedRe: [PATCH v2] dma: of-dma.c: fix memory leakage
Quoted 3 lines · Cong Ding
The memory allocated to ofdma might be a leakage when error occurs.
Signed-off-by Cong Ding <[email protected]>
Applied, thanks
--
~Vinod
Quoted 19 lines
--- drivers/dma/of-dma.c | 1 + 1 file changed, 1 insertion(+)drivers/dma/of-dma.c +1
-0@@ -107,6 +107,7 @@ int of_dma_controller_register(struct device_node *np,if (!nbcells) {pr_err ("%s: #dma-cells property is missing or invalid\n" , __func__); +kfree (ofdma);return -EINVAL ; }Signature · 1 line
1.7.9.5