diff options
| author | Hans de Goede <[email protected]> | 2021-06-28 09:36:00 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2021-06-28 09:52:42 +0000 |
| commit | 23dcd7497c227a16acdda5e44f141fdc1e660f94 (patch) | |
| tree | 58ad07eab5208e6fd6fcc58dbb5db35bf8a569bf /net/switchdev/switchdev.c | |
| parent | platform/x86: think-lmi: Split current_value to reflect only the value (diff) | |
| download | kernel-23dcd7497c227a16acdda5e44f141fdc1e660f94.tar.gz kernel-23dcd7497c227a16acdda5e44f141fdc1e660f94.zip | |
platform/x86: think-lmi: Move kfree(setting->possible_values) to tlmi_attr_setting_release()
We must not free the possible_values string before we have called
sysfs_remove_group(kobj, &tlmi_attr_group) otherwise there is a race
where a sysfs read of possible_values could reference the free-ed
memory.
Move the kfree(setting->possible_values) together with the free of the
actual tlmi_attr_setting struct to avoid this race.
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
