aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bus/qcom-ebi2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bus/qcom-ebi2.c')
-rw-r--r--drivers/bus/qcom-ebi2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/bus/qcom-ebi2.c b/drivers/bus/qcom-ebi2.c
index a6444244c411..bfb67aa00bec 100644
--- a/drivers/bus/qcom-ebi2.c
+++ b/drivers/bus/qcom-ebi2.c
@@ -357,8 +357,10 @@ static int qcom_ebi2_probe(struct platform_device *pdev)
/* Figure out the chipselect */
ret = of_property_read_u32(child, "reg", &csindex);
- if (ret)
+ if (ret) {
+ of_node_put(child);
return ret;
+ }
if (csindex > 5) {
dev_err(dev,