diff options
author | Dmitry Osipenko <[email protected]> | 2020-08-18 02:50:48 +0300 |
---|---|---|
committer | Lee Jones <[email protected]> | 2020-08-24 14:23:55 +0100 |
commit | 6b6cf2b5debd42de39afd8ac84b60faeca62cfaf (patch) | |
tree | f6858b75e310ea2576f4f794ff9e36db405478fc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) |
mfd: core: Fix double-free in mfd_remove_devices_fn()
The pdev.mfd_cell is released by platform_device_release(), which is
invoked by platform_device_unregister(). Hence mfd_remove_devices_fn()
shouldn't release the cell variable. The double-free bug is reported KASAN
during of MFD driver module removal.
Fixes: 466a62d7642f ("mfd: core: Make a best effort attempt to match devices with the correct of_nodes")
Reported-by: Marek Szyprowski <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions