mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-28 05:16:15 +00:00
In some case, the GDDV returns a package with a buffer which has zero length. It causes that kmemdup() returns ZERO_SIZE_PTR (0x10). Then the data_vault_read() got NULL point dereference problem when accessing the 0x10 value in data_vault. [ 71.024560] BUG: kernel NULL pointer dereference, address: 0000000000000010 This patch uses ZERO_OR_NULL_PTR() for checking ZERO_SIZE_PTR or NULL value in data_vault. Signed-off-by: "Lee, Chun-Yi" <jlee@suse.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
||
|---|---|---|
| .. | ||
| acpi_thermal_rel.c | ||
| acpi_thermal_rel.h | ||
| int340x_thermal_zone.c | ||
| int340x_thermal_zone.h | ||
| int3400_thermal.c | ||
| int3401_thermal.c | ||
| int3402_thermal.c | ||
| int3403_thermal.c | ||
| int3406_thermal.c | ||
| Kconfig | ||
| Makefile | ||
| processor_thermal_device_pci_legacy.c | ||
| processor_thermal_device_pci.c | ||
| processor_thermal_device.c | ||
| processor_thermal_device.h | ||
| processor_thermal_mbox.c | ||
| processor_thermal_rapl.c | ||
| processor_thermal_rfim.c | ||