linux/drivers/firmware
Gleb Natapov 0c61227094 x86, setup: Fix EDD3.0 data verification.
Check for nonzero path in edd_has_edd30() has no sense. First, it looks
at the wrong memory. Device path starts at offset 30 of the info->params
structure which is at offset 8 from the beginning of info structure,
but code looks at info + 4 instead. This was correct when code was
introduced, but around v2.6.4 three more fields were added to edd_info
structure (commit 66b61a5c in history.git). Second, even if it will check
correct memory it will always succeed since at offset 30 (params->key)
there will be non-zero values otherwise previous check would fail.

The patch replaces this bogus check with one that verifies checksum.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Link: http://lkml.kernel.org/r/20110426082132.GG2265@redhat.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2011-04-27 14:16:12 -07:00
..
dcdbas.c dcdbas: force SMI to happen when expected 2011-03-02 13:42:10 +01: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 x86, dmi, debug: Log board name (when present) in dmesg/oops output 2011-02-15 04:20:57 +01: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 x86, setup: Fix EDD3.0 data verification. 2011-04-27 14:16:12 -07:00
efivars.c efivars: Expose efivars functionality to external drivers. 2011-03-14 08:40:51 -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 sigma-firmware: loader for Analog Devices' SigmaStudio 2011-03-22 17:44:15 -07:00
Makefile sigma-firmware: loader for Analog Devices' SigmaStudio 2011-03-22 17:44:15 -07: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
sigma.c sigma-firmware: loader for Analog Devices' SigmaStudio 2011-03-22 17:44:15 -07:00