From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
Linux Edac Mailing List <linux-edac@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/4] i3200_edac: Fix a regression introduced by 3b6909b
Date: Mon, 12 Mar 2012 09:48:32 -0300 [thread overview]
Message-ID: <1331556515-7902-2-git-send-email-mchehab@redhat.com> (raw)
In-Reply-To: <1331556515-7902-1-git-send-email-mchehab@redhat.com>
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
next prev parent reply other threads:[~2012-03-12 12:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-12 12:48 [PATCH 0/4] Some fixes over the last EDAC series Mauro Carvalho Chehab
2012-03-12 12:48 ` Mauro Carvalho Chehab [this message]
2012-03-12 12:48 ` [PATCH 2/4] edac: display "rank" for csrow-based MC's at the debug msgs Mauro Carvalho Chehab
2012-03-12 12:48 ` [PATCH 3/4] amd64_edac: Fix the rank number of pages count Mauro Carvalho Chehab
2012-03-12 16:51 ` Borislav Petkov
2012-03-12 12:48 ` [PATCH 4/4] i5100_edac: Fix a warning on a debug message Mauro Carvalho Chehab
2012-03-12 16:45 ` [PATCH 0/4] Some fixes over the last EDAC series Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1331556515-7902-2-git-send-email-mchehab@redhat.com \
--to=mchehab@redhat.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome