diff options
author | Mike Waychison <mikew@google.com> | 2011-02-26 00:41:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-26 01:10:03 +0100 |
commit | 66245ad025e02fe9e727c03d43308bb24e346bb6 (patch) | |
tree | 9597235bf126cde0d4d5e0a6d51a58bcbe8d15ca /Documentation/zh_CN/SubmittingPatches | |
parent | firmware: Add documentation for /sys/firmware/dmi (diff) | |
download | linux-66245ad025e02fe9e727c03d43308bb24e346bb6.tar.xz linux-66245ad025e02fe9e727c03d43308bb24e346bb6.zip |
firmware: Fix unaligned memory accesses in dmi-sysfs
DMI entries are arranged in memory back to back with no alignment
guarantees. This means that the struct dmi_header passed to callbacks
from dmi_walk() itself isn't byte aligned. This causes problems on
architectures that expect aligned data, such as IA64.
The dmi-sysfs patchset introduced structure member accesses through this
passed in dmi_header. Fix this by memcpy()ing the structures to
temporary locations on stack when inspecting/copying them.
Signed-off-by: Mike Waychison <mikew@google.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/zh_CN/SubmittingPatches')
0 files changed, 0 insertions, 0 deletions