diff --git a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c index 70259425e7e9..c223ecb3ad3f 100644 --- a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c +++ b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c @@ -88,6 +88,7 @@ static int rt2880_pinctrl_dt_node_to_map(struct pinctrl_dev *pctrldev, for_each_node_with_property(np_config, "group") ngroups++; + *map = NULL; ret = pinctrl_utils_reserve_map(pctrldev, map, &reserved_maps, num_maps, ngroups); if (ret) {