kernel_optimize_test/drivers/platform/x86
Thadeu Lima de Souza Cascardo 8b14d7b22c wmi: use memcmp instead of strncmp to compare GUIDs
While looking for the duplicates in /sys/class/wmi/, I couldn't find
them. The code that looks for duplicates uses strncmp in a binary GUID,
which may contain zero bytes. The right function is memcmp, which is
also used in another section of wmi code.

It was finding 49142400-C6A3-40FA-BADB-8A2652834100 as a duplicate of
39142400-C6A3-40FA-BADB-8A2652834100. Since the first byte is the fourth
printed, they were found as equal by strncmp.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: stable@kernel.org
2010-12-06 17:19:13 -05:00
..
acer-wmi.c Don't show error if Acer WMI is not found 2010-10-21 09:36:44 -04:00
acerhdf.c acerhdf: fix resource reclaim in error path 2010-08-03 09:49:01 -04:00
asus_acpi.c drivers/platform/x86: Adjust confusing if indentation 2010-08-16 11:54:20 -04:00
asus-laptop.c asus-laptop: add wimax and wwan support 2010-11-24 12:00:15 -05:00
classmate-laptop.c classmate-laptop: make needlessly global symbols static 2010-08-03 09:48:59 -04:00
compal-laptop.c platform/x86: move rfkill for Dell Mini 1012 to compal-laptop 2010-08-16 11:55:00 -04:00
dell-laptop.c dell-laptop: Add debugfs support 2010-10-21 09:36:49 -04:00
dell-wmi.c Input: dell-wmi - switch to using sparse keymap library 2010-10-21 09:36:43 -04:00
eeepc-laptop.c platform-x86: sync eeepc-laptop and asus-laptop 2010-10-21 09:36:43 -04:00
eeepc-wmi.c eeepc-wmi: fix compiler warning 2010-11-24 12:00:09 -05:00
fujitsu-laptop.c fujitsu-laptop: make needlessly global symbols static 2010-08-03 09:49:00 -04:00
hdaps.c Move hdaps driver to platform/x86 2010-10-21 10:10:43 -04:00
hp-wmi.c ACPI, hp-wmi: Fix memory leak in acpi query 2010-11-24 12:07:10 -05:00
ibm_rtl.c ibm_rtl: _RTL_ is not available in UEFI mode 2010-11-24 12:00:03 -05:00
ideapad-laptop.c ideapad: Add param: no_bt_rfkill 2010-10-21 09:36:51 -04:00
intel_ips.c IPS driver: Fix limit clamping when reducing CPU power 2010-10-05 14:59:35 -04:00
intel_menlow.c intel_menlow: fix memory leaks in error path 2010-08-03 09:48:40 -04:00
intel_pmic_gpio.c Remove duplicate includes from many files 2010-10-27 18:03:18 -07:00
intel_rar_register.c rar: Fix off by one error 2010-08-24 10:42:08 -07:00
intel_scu_ipc.c scu_ipc: Fix warning caused by include changes 2010-10-21 09:36:45 -04:00
Kconfig IBM Real-Time "SMI Free" mode driver -v7 2010-10-21 10:10:46 -04:00
Makefile IBM Real-Time "SMI Free" mode driver -v7 2010-10-21 10:10:46 -04:00
msi-laptop.c msi-laptop: make struct rfkill_ops const 2010-08-03 09:49:00 -04:00
msi-wmi.c msi-wmi: fix semantically incorrect use of keycode instead of scancode 2010-11-24 12:00:28 -05:00
panasonic-laptop.c panasonic-laptop: Simplify calls to acpi_pcc_retrieve_biosdata 2010-10-21 10:10:50 -04:00
sony-laptop.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
tc1100-wmi.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
thinkpad_acpi.c drivers/platform/x86/thinkpad_acpi.c: delete double assignment 2010-11-24 11:59:51 -05:00
topstar-laptop.c topstar-laptop - switch to using sparse keymap library 2010-10-21 09:36:42 -04:00
toshiba_acpi.c toshiba_acpi.c: Add key_entry for a lone FN keypress 2010-11-24 11:59:37 -05:00
toshiba_bluetooth.c ACPI: replace acpi_integer by u64 2010-01-28 01:47:33 -05:00
wmi.c wmi: use memcmp instead of strncmp to compare GUIDs 2010-12-06 17:19:13 -05:00
xo1-rfkill.c Add OLPC XO-1 rfkill driver 2010-10-21 10:10:44 -04:00