Messages in this thread Patch in this message | | | From | Mauro Carvalho Chehab <> | Subject | [PATCH 1/4] i3200_edac: Fix a regression introduced by 3b6909b | Date | Mon, 12 Mar 2012 09:48:32 -0300 |
| |
The size of the private data structure is not zero. Fix it.
This is a cut-and-paste error introduced when copying the alloc init code from some other driver.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> --- drivers/edac/i3200_edac.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c index 1233435..9171823 100644 --- a/drivers/edac/i3200_edac.c +++ b/drivers/edac/i3200_edac.c @@ -358,7 +358,8 @@ static int i3200_probe1(struct pci_dev *pdev, int dev_idx) layers[1].type = EDAC_MC_LAYER_CHANNEL; layers[1].size = nr_channels; layers[1].is_csrow = false; - mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, false, 0); + mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, + false, sizeof(struct i3200_priv)); if (!mci) return -ENOMEM; -- 1.7.8
| |