From: Luck, Tony Date: Fri, 1 Nov 2013 20:59:52 +0000 (-0700) Subject: dmi: Avoid unaligned memory access in save_mem_devices() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~28^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0841c04d65937ad2808f59c43cb54a92473c8f0e;p=pandora-kernel.git 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 Cc: Chen Gong Link: http://lkml.kernel.org/r/27d82dbff5be1025bf18ab88498632d36c2fcf3c.1383331440.git.tony.luck@intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed