linux-sg2042/include/acpi
Heikki Krogerus 0224a4a30b device property: Avoid potential dereferences of invalid pointers
Since fwnode may hold ERR_PTR(-ENODEV) or it may be NULL,
the fwnode type checks is_of_node(), is_acpi_node() and is
is_pset_node() need to consider it. Using IS_ERR_OR_NULL()
to check it.

Fixes: 0d67e0fa16 (device property: fix for a case of use-after-free)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-04-27 23:40:02 +02:00
..
platform ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acbuffer.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acconfig.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acexcep.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acnames.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acoutput.h ACPICA: Utilities: Update trace mechinism for acquire_object 2016-03-08 22:56:21 +01:00
acpi.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acpi_bus.h device property: Avoid potential dereferences of invalid pointers 2016-04-27 23:40:02 +02:00
acpi_drivers.h ACPI: Remove FSF mailing addresses 2015-07-08 02:27:32 +02:00
acpi_io.h ACPI: fix acpi_os_ioremap for arm64 2015-03-25 11:49:30 +00:00
acpi_lpat.h ACPI / LPAT: Common table processing functions 2015-01-29 21:02:10 +08:00
acpi_numa.h ACPI / numa: Make __acpi_map_pxm_to_node(), acpi_get_pxm() static 2014-02-03 10:39:38 -07:00
acpiosxf.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acpixf.h ACPICA: Remove unnecessary arguments to ACPI_INFO 2016-02-24 14:14:49 +01:00
acrestyp.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
actbl.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
actbl1.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
actbl2.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
actbl3.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
actypes.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
acuuid.h ACPICA: Additional 2016 copyright changes 2016-01-15 22:18:09 +01:00
apei.h acpi, apei, ghes: Factor out ioremap virtual memory for IRQ and NMI context. 2014-07-22 15:05:06 -07:00
button.h ACPI: Eliminate CONFIG_.*{, _MODULE} #ifdef in favor of IS_ENABLED() 2015-09-15 03:05:45 +02:00
cppc_acpi.h ACPI / CPPC: remove redundant mbox_send_message() declaration 2016-02-03 01:09:52 +01:00
ghes.h ACPICA: Restore error table definitions to reduce code differences between Linux and ACPICA upstream. 2014-06-16 22:33:50 +02:00
hed.h ACPI Hardware Error Device (PNP0C33) support 2010-05-19 22:40:24 -04:00
pdc_intel.h ACPI: Enable bit 11 in _PDC to advertise hw coord 2009-02-07 00:41:14 -05:00
processor.h ACPI / sleep: move acpi_processor_sleep to sleep.c 2016-02-22 00:53:56 +01:00
reboot.h Add the ability to reset the machine using the RESET_REG in ACPI's FADT table. 2008-07-16 23:27:08 +02:00
video.h ACPI / video: Document acpi_video_handles_brightness_key_presses() a bit 2016-01-15 22:09:07 +01:00