Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323125
b: refs/heads/master
c: ef6e781
h: refs/heads/master
i:
  323123: be7086a
v: v3
  • Loading branch information
Fengguang Wu authored and Linus Torvalds committed Sep 23, 2012
1 parent 744be0a commit b7cfd10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5e77cf9f9a275083f9a365a20d956fa8a67803e
refs/heads/master: ef6e7816b4546475d04b4ea22d58c48472157c70
12 changes: 7 additions & 5 deletions trunk/drivers/edac/edac_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,16 @@ struct mem_ctl_info *edac_mc_alloc(unsigned mc_num,
kfree(mci->dimms);
}
if (mci->csrows) {
for (chn = 0; chn < tot_channels; chn++) {
csr = mci->csrows[chn];
for (row = 0; row < tot_csrows; row++) {
csr = mci->csrows[row];
if (csr) {
for (chn = 0; chn < tot_channels; chn++)
kfree(csr->channels[chn]);
if (csr->channels) {
for (chn = 0; chn < tot_channels; chn++)
kfree(csr->channels[chn]);
kfree(csr->channels);
}
kfree(csr);
}
kfree(mci->csrows[i]);
}
kfree(mci->csrows);
}
Expand Down

0 comments on commit b7cfd10

Please sign in to comment.