diff options
| author | Luck, Tony <[email protected]> | 2013-11-01 20:59:52 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2013-11-03 09:40:12 +0000 |
| commit | 0841c04d65937ad2808f59c43cb54a92473c8f0e (patch) | |
| tree | 92159fbcb7821de9ee55f7220e18b2117867ecb3 /drivers/pci/hotplug/ibmphp_hpc.c | |
| parent | Merge tag 'please-pull-move-cper' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-0841c04d65937ad2808f59c43cb54a92473c8f0e.tar.gz kernel-0841c04d65937ad2808f59c43cb54a92473c8f0e.zip | |
dmi: Avoid unaligned memory access in save_mem_devices()
Firmware is not required to maintain alignment of SMBIOS
entries, so we should take care accessing fields within these
structures. Use "get_unaligned()" to avoid problems.
[ Found on ia64 (which grumbles about unaligned access) ]
Signed-off-by: Tony Luck <[email protected]>
Cc: Chen Gong <[email protected]>
Link: http://lkml.kernel.org/r/27d82dbff5be1025bf18ab88498632d36c2fcf3c.1383331440.git.tony.luck@intel.com
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
0 files changed, 0 insertions, 0 deletions
