Linux-ARM-Kernel Archive on
 help / color / Atom feed
* [PATCH] stm class: Fix a double free of stm_source_device
@ 2019-07-17  9:16 Ding Xiang
  0 siblings, 0 replies; only message in thread
From: Ding Xiang @ 2019-07-17  9:16 UTC (permalink / raw)
  To: alexander.shishkin, mcoquelin.stm32, alexandre.torgue
  Cc: linux-stm32, linux-arm-kernel, linux-kernel

put_device will call stm_source_device_release to free
stm_source_device, so remove the kfree.

Signed-off-by: Ding Xiang <>
 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,
-	kfree(src);
 	return err;

linux-arm-kernel mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17  9:16 [PATCH] stm class: Fix a double free of stm_source_device Ding Xiang

Linux-ARM-Kernel Archive on

Archives are clonable:
	git clone --mirror linux-arm-kernel/git/0.git
	git clone --mirror linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ \
	public-inbox-index linux-arm-kernel

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox