Skip to content

Commit

Permalink
EDAC, ppc4xx: Access mci->csrows array elements properly
Browse files Browse the repository at this point in the history
The commit

  de3910e ("edac: change the mem allocation scheme to
		 make Documentation/kobject.txt happy")

changed the memory allocation for the csrows member. But ppc4xx_edac was
forgotten in the patch. Fix it.

Signed-off-by: Michael Walle <[email protected]>
Cc: <[email protected]>
Cc: linux-edac <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
  • Loading branch information
mwalle authored and suryasaimadhu committed Aug 13, 2015
1 parent d770e55 commit 5c16179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/ppc4xx_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ static int ppc4xx_edac_init_csrows(struct mem_ctl_info *mci, u32 mcopt1)
*/

for (row = 0; row < mci->nr_csrows; row++) {
struct csrow_info *csi = &mci->csrows[row];
struct csrow_info *csi = mci->csrows[row];

/*
* Get the configuration settings for this
Expand Down

0 comments on commit 5c16179

Please sign in to comment.