kernel-hacking-2024-linux-s.../drivers/firmware
Mike Waychison 66245ad025 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>
2011-02-25 16:10:03 -08:00
..
dcdbas.c
dcdbas.h
dell_rbu.c
dmi-id.c
dmi-sysfs.c firmware: Fix unaligned memory accesses in dmi-sysfs 2011-02-25 16:10:03 -08:00
dmi_scan.c dmi: log board, system, and BIOS information 2010-10-27 18:03:05 -07:00
edd.c Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
efivars.c
iscsi_ibft.c
iscsi_ibft_find.c
Kconfig firmware: Basic dmi-sysfs support 2011-02-25 12:01:19 -08:00
Makefile firmware: Basic dmi-sysfs support 2011-02-25 12:01:19 -08:00
memmap.c
pcdp.c
pcdp.h Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00