On Mon, 18 Mar 2024 17:28:42 +0100 Mariusz Tkaczyk <mariusz.tkaczyk@xxxxxxxxxxxxxxx> wrote: > 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@xxxxxxxxxxxxxxx> > --- Applied! Thanks, Mariusz