diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-04-29 16:01:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-04 18:57:21 +0200 |
commit | 3df463865ba42b8f88a590326f4c9ea17a1ce459 (patch) | |
tree | d78b14e4fa6972194cd15d82d45eae193fb89e01 /drivers/hwtracing/stm/p_basic.c | |
parent | 1565fce99bd053483eba0714122988dcd29fac91 (diff) | |
download | linux-3df463865ba42b8f88a590326f4c9ea17a1ce459.tar.gz linux-3df463865ba42b8f88a590326f4c9ea17a1ce459.tar.bz2 linux-3df463865ba42b8f88a590326f4c9ea17a1ce459.zip |
stm class: Fix a double free in stm_register_device()
The put_device(&stm->dev) call will trigger stm_device_release() which
frees "stm" so the vfree(stm) on the next line is a double free.
Fixes: 389b6699a2aa ("stm class: Fix stm device initialization order")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lore.kernel.org/r/20240429130119.1518073-2-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/stm/p_basic.c')
0 files changed, 0 insertions, 0 deletions