dma: of-dma.c: fix memory leakage
[deliverable/linux.git] / drivers / dma / of-dma.c
index 59631b2c4666115de2b19febf7c0bd0a77d9df4f..583e50e3d47cb6ac1c4fafd9f3fe50882bc8fe74 100644 (file)
@@ -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;
        }
 
This page took 0.029656 seconds and 5 git commands to generate.