From 9af937c6f6a40f11541a43fd6b1fa33998647861 Mon Sep 17 00:00:00 2001 From: Bibek Basu Date: Thu, 25 Aug 2011 15:58:35 +0530 Subject: U5500 : coverity fix in ab5500 core and mailbox Following fix in mailbox logical driver and ab5500 core driver Used after free Unused value Bad Free ST-Ericsson Linux next: 336280 ST-Ericsson ID: 348573 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I57e11eebc94d97a73612b4cef5e403b8e72f38e8 Signed-off-by: Bibek Basu Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25866 Reviewed-by: Srinidhi KASAGAR --------- Partially applied, coverity fixes in mbox seems to be already present. Signed-off-by: Arun Murthy --- drivers/mfd/ab5500-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c index 2ac4d9b0aea..cf0e14e4c84 100755 --- a/drivers/mfd/ab5500-core.c +++ b/drivers/mfd/ab5500-core.c @@ -2107,7 +2107,6 @@ exit_no_detect: static int __exit ab5500_remove(struct platform_device *pdev) { struct ab5500 *ab = platform_get_drvdata(pdev); - struct resource *res; /* * At this point, all subscribers should have unregistered @@ -2119,7 +2118,6 @@ static int __exit ab5500_remove(struct platform_device *pdev) free_irq(ab->ab5500_irq, ab); ab5500_irq_remove(ab); } - res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); kfree(ab); return 0; } -- cgit v1.2.3