Message ID | 1563354988-23826-1-git-send-email-dingxiang@cmss.chinamobile.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 961b6ffe0e2c403b09a8efe4a2e986b3c415391a |
Headers | show |
Series | stm class: Fix a double free of stm_source_device | expand |
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; }
put_device will call stm_source_device_release to free stm_source_device, so remove the kfree. Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> --- drivers/hwtracing/stm/core.c | 1 - 1 file changed, 1 deletion(-)