projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ARM: mxs: free dma_mask in error path
[deliverable/linux.git]
/
arch
/
arm
/
mach-mxs
/
devices.c
diff --git
a/arch/arm/mach-mxs/devices.c
b/arch/arm/mach-mxs/devices.c
index c20d54740b0ba338c1286593e6cd6e5c215f4776..cfdb6b284702d75fb38cbf79fd97b4331ee46600 100644
(file)
--- a/
arch/arm/mach-mxs/devices.c
+++ b/
arch/arm/mach-mxs/devices.c
@@
-66,6
+66,8
@@
struct platform_device *__init mxs_add_platform_device_dmamask(
ret = platform_device_add(pdev);
if (ret) {
err:
+ if (dmamask)
+ kfree(pdev->dev.dma_mask);
platform_device_put(pdev);
return ERR_PTR(ret);
}
This page took
0.041257 seconds
and
5
git commands to generate.