diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-03-18 17:28:42 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-03-22 12:16:41 +0100 |
commit | ae996e81232b8ba991e763dfa15577a0af358358 (patch) | |
tree | 6dcdff2c6e75e5dcfc4e98c7ba2b8acd12b5c184 /Build.c | |
parent | sysfs: remove vers parameter from sysfs_set_array (diff) | |
download | mdadm-ae996e81232b8ba991e763dfa15577a0af358358.tar.xz mdadm-ae996e81232b8ba991e763dfa15577a0af358358.zip |
mdadm: fix grow segfault for IMSM
If sc is not initialized, there is possibility that sc.pols is not zeroed
and it causes segfault.
Add missing initialization.
Add missing dev_policy_free() in two places.
Fixes: f656201188d7 ("mdadm: drop get_required_spare_criteria()")
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'Build.c')
0 files changed, 0 insertions, 0 deletions