diff options
| author | Chris Metcalf <[email protected]> | 2012-06-06 17:11:05 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2012-06-11 15:43:16 +0000 |
| commit | 8447c4d15e357a458c9051ddc84aa6c8b9c27000 (patch) | |
| tree | 33377297a94e02d0a87246010c8f4c83d8119bb2 /fs/jbd2/commit.c | |
| parent | mpc85xx_edac: fix error: too few arguments to function 'edac_mc_alloc' (diff) | |
| download | kernel-8447c4d15e357a458c9051ddc84aa6c8b9c27000.tar.gz kernel-8447c4d15e357a458c9051ddc84aa6c8b9c27000.zip | |
edac: Do alignment logic properly in edac_align_ptr()
The logic was checking the sizeof the structure being allocated to
determine whether an alignment fixup was required. This isn't right;
what we actually care about is the alignment of the actual pointer that's
about to be returned. This became an issue recently because struct
edac_mc_layer has a size that is not zero modulo eight, so we were
taking the correctly-aligned pointer and forcing it to be misaligned.
On Tile this caused an alignment exception.
Signed-off-by: Chris Metcalf <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
