summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2011-06-27 11:07:30 +0530
committerMathieu J. Poirier <mathieu.poirier@linaro.org>2011-11-10 11:12:16 -0700
commit21b7d9a5fab6d7ea69bdfb5377115220071e5734 (patch)
tree33cedc8f89da4353f59339859eac6206b61788f7
parent46c03d7527bd91b9041973056f6d5b18d3797dc8 (diff)
u8500-shrm: memory leakage in probe function
Memory leakage if getting modem access framework fails during probe. ST-Ericsson Linux next: Not Tested ST-Ericsson ID: ER349208 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I1827581aa5bdabeaf32f09b8eb1f482525785cc0 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25869 Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
-rw-r--r--drivers/modem/shrm/modem_shrm_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/modem/shrm/modem_shrm_driver.c b/drivers/modem/shrm/modem_shrm_driver.c
index 5e986ab9a2c..f46b86bd22e 100644
--- a/drivers/modem/shrm/modem_shrm_driver.c
+++ b/drivers/modem/shrm/modem_shrm_driver.c
@@ -334,7 +334,8 @@ static int shrm_probe(struct platform_device *pdev)
shrm->modem = modem_get(shrm->dev, "u8500-shrm-modem");
if (shrm->modem == NULL) {
dev_err(shrm->dev, " Could not retrieve the modem.\n");
- return -ENODEV;
+ err = -ENODEV;
+ goto rollback_intr;
}
/* initialise the SHM */