From f278b3586371e6ad98237095c279519995fa696d Mon Sep 17 00:00:00 2001 From: Ashok G Date: Wed, 18 Jan 2012 12:28:52 +0530 Subject: abx500-accdet: fix the kfree bug. Don't free the statically allocated data structure. ST-Ericsson Linux next: NA ST-Ericsson ID: 410063 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I2f58852de2dbdd401c72a873f9568aba83d01e49 Signed-off-by: Ashok G Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45769 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Virupax SADASHIVPETIMATH Reviewed-by: Srinidhi KASAGAR --- drivers/input/misc/abx500-accdet.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/abx500-accdet.c b/drivers/input/misc/abx500-accdet.c index d716a1d8870..1a743f6e6b9 100644 --- a/drivers/input/misc/abx500-accdet.c +++ b/drivers/input/misc/abx500-accdet.c @@ -871,7 +871,6 @@ static void abx500_accessory_cleanup(struct abx500_ad *dd) flush_workqueue(dd->irq_work_queue); destroy_workqueue(dd->irq_work_queue); - kfree(dd); } static int __devinit abx500_acc_detect_probe(struct platform_device *pdev) -- cgit v1.2.3