diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2024-07-27 16:34:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-31 14:55:49 +0200 |
commit | bfa54a793ba77ef696755b66f3ac4ed00c7d1248 (patch) | |
tree | cbbb1732b884220a22278ef6ce3d4b7fdd7a6002 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2bdf3b83515ead3b3fdf93610e4a3bb9a89bc852 (diff) |
driver core: bus: Fix double free in driver API bus_register()
For bus_register(), any error which happens after kset_register() will
cause that @priv are freed twice, fixed by setting @priv with NULL after
the first free.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20240727-bus_register_fix-v1-1-fed8dd0dba7a@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions