Home Home > GIT Browse > SLE12-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-10 15:39:24 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-10 15:44:10 +0200
commit0aa8462544d15a364d9ddace26ea11a86520ab26 (patch)
treec34fd487af6713abcb1509d95177de242f5742da
parentaede48ffd1f68e34eea4e17854e2e5527dc89036 (diff)
stm class: Fix a use-after-free (bsc#1051510).
-rw-r--r--drivers/hwtracing/stm/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index 0e731143f6a4..08b8305fee44 100644
--- a/drivers/hwtracing/stm/core.c
+++ b/drivers/hwtracing/stm/core.c
@@ -1119,7 +1119,7 @@ void stm_source_unregister_device(struct stm_source_data *data)
stm_source_link_drop(src);
- device_destroy(&stm_source_class, src->dev.devt);
+ device_unregister(&src->dev);
}
EXPORT_SYMBOL_GPL(stm_source_unregister_device);