linux/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: remove a redundant smi_data_buf_free in dcdbas_exit 2010-08-05 13:53:34 -07:00
dcdbas.h dcdbas: export functionality for use in other drivers 2009-01-08 08:31:12 -08:00
dell_rbu.c sysfs: add struct file* to bin_attr callbacks 2010-05-21 09:37:31 -07:00
dmi_scan.c dmi: log board, system, and BIOS information 2010-10-27 18:03:05 -07:00
dmi-id.c dmi-id: fix a memory leak in dmi_id_init error path 2010-08-05 13:53:34 -07:00
dmi-sysfs.c firmware: Fix unaligned memory accesses in dmi-sysfs 2011-02-25 16:10:03 -08:00
edd.c Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
efivars.c sysfs: add struct file* to bin_attr callbacks 2010-05-21 09:37:31 -07:00
iscsi_ibft_find.c ibft: Use IBFT_SIGN instead of open-coding the search string. 2010-05-12 10:33:09 -04:00
iscsi_ibft.c ibft: Kernel oops when rmmoding iscsi_ibft with no iBFT present. 2010-08-11 16:35:40 -04:00
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 include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pcdp.c [IA64] Convert ia64 to use int-ll64.h 2009-06-17 09:33:49 -07:00
pcdp.h Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00