]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/pinctrl/pinctrl-ocelot.c
veth: Add XDP TX and REDIRECT
[mirror_ubuntu-hirsute-kernel.git] / drivers / pinctrl / pinctrl-ocelot.c
index b5b3547fdcb2bcf33c50cf3ebcb634de48994bb3..15bb1cb8729b936eb73f519286f7d5a88f0e0a3f 100644 (file)
@@ -330,7 +330,8 @@ static int ocelot_create_group_func_map(struct device *dev,
                }
 
                info->func[f].ngroups = npins;
-               info->func[f].groups = devm_kzalloc(dev, npins *
+               info->func[f].groups = devm_kcalloc(dev,
+                                                        npins,
                                                         sizeof(char *),
                                                         GFP_KERNEL);
                if (!info->func[f].groups)