Loading net/dsa/dsa.c +2 −1 Original line number Diff line number Diff line Loading @@ -526,7 +526,8 @@ static int dsa_of_setup_routing_table(struct dsa_platform_data *pd, /* First time routing table allocation */ if (!cd->rtable) { cd->rtable = kmalloc(pd->nr_chips * sizeof(s8), GFP_KERNEL); cd->rtable = kmalloc_array(pd->nr_chips, sizeof(s8), GFP_KERNEL); if (!cd->rtable) return -ENOMEM; Loading Loading
net/dsa/dsa.c +2 −1 Original line number Diff line number Diff line Loading @@ -526,7 +526,8 @@ static int dsa_of_setup_routing_table(struct dsa_platform_data *pd, /* First time routing table allocation */ if (!cd->rtable) { cd->rtable = kmalloc(pd->nr_chips * sizeof(s8), GFP_KERNEL); cd->rtable = kmalloc_array(pd->nr_chips, sizeof(s8), GFP_KERNEL); if (!cd->rtable) return -ENOMEM; Loading