Chris Metcalf 8447c4d15e 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 <cmetcalf@tilera.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-06-11 12:43:16 -03:00
..
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2011-04-19 00:23:22 +02:00
2012-05-28 19:10:59 -03:00
2012-05-28 19:10:59 -03:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2009-04-02 19:05:03 -07:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00
2012-05-28 19:13:50 -03:00