diff options
author | Bibek Basu <bibek.basu@stericsson.com> | 2011-08-25 15:58:35 +0530 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 16:00:11 +0200 |
commit | 9af937c6f6a40f11541a43fd6b1fa33998647861 (patch) | |
tree | c377d3169c3ffdcf455e467cb394558996de659a | |
parent | c8a025206d7f016f2c8b7acc64ef6d1d3d1e5cfb (diff) |
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 <bibek.basu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25866
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
---------
Partially applied, coverity fixes in mbox seems to be already present.
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
-rwxr-xr-x | drivers/mfd/ab5500-core.c | 2 |
1 files changed, 0 insertions, 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; } |