|
@@ -1617,7 +1617,7 @@ static void brcmf_pcie_setup(struct device *dev, const struct firmware *fw,
|
|
bus->msgbuf->commonrings[i] =
|
|
bus->msgbuf->commonrings[i] =
|
|
&devinfo->shared.commonrings[i]->commonring;
|
|
&devinfo->shared.commonrings[i]->commonring;
|
|
|
|
|
|
- flowrings = kcalloc(devinfo->shared.nrof_flowrings, sizeof(flowrings),
|
|
|
|
|
|
+ flowrings = kcalloc(devinfo->shared.nrof_flowrings, sizeof(*flowrings),
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
if (!flowrings)
|
|
if (!flowrings)
|
|
goto fail;
|
|
goto fail;
|