]> err.no Git - linux-2.6/commit
[PATCH] `unaligned access' in acpi get_root_bridge_busnr()
authorPeter Chubb <peterc@gelato.unsw.edu.au>
Thu, 20 Oct 2005 05:45:14 +0000 (22:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 20 Oct 2005 06:04:31 +0000 (23:04 -0700)
commit51b190b304bbeb1090ba20b0623d39917fa62997
treeff136b65291671ca93f65aff101c1b5ead5f9a9b
parent11909d64389c24b409e20f0eeafdc262e0a55788
[PATCH] `unaligned access' in acpi get_root_bridge_busnr()

In drivers/acpi/glue.c the address of an integer is cast to the address of
an unsigned long.  This breaks on systems where a long is larger than an
int --- for a start the int can be misaligned; for a second the assignment
through the pointer will overwrite part of the next variable.

Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Acked-by: "Brown, Len" <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/acpi/glue.c