[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1563354988-23826-1-git-send-email-dingxiang@cmss.chinamobile.com>
Date: Wed, 17 Jul 2019 17:16:28 +0800
From: Ding Xiang <dingxiang@...s.chinamobile.com>
To: alexander.shishkin@...ux.intel.com, mcoquelin.stm32@...il.com,
alexandre.torgue@...com
Cc: linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] stm class: Fix a double free of stm_source_device
put_device will call stm_source_device_release to free
stm_source_device, so remove the kfree.
Signed-off-by: Ding Xiang <dingxiang@...s.chinamobile.com>
---
drivers/hwtracing/stm/core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index e55b902..181e7ff 100644
--- a/drivers/hwtracing/stm/core.c
+++ b/drivers/hwtracing/stm/core.c
@@ -1276,7 +1276,6 @@ int stm_source_register_device(struct device *parent,
err:
put_device(&src->dev);
- kfree(src);
return err;
}
--
1.9.1
Powered by blists - more mailing lists