linux-stable/drivers/platform
Lu Wei 93753a2cce platform/x86: intel-vbtn: Fix return value check in check_acpi_dev()
[ Upstream commit 64dd4a5a7d ]

In the function check_acpi_dev(), if it fails to create
platform device, the return value is ERR_PTR() or NULL.
Thus it must use IS_ERR_OR_NULL() to check return value.

Fixes: 332e081225 ("intel-vbtn: new driver for Intel Virtual Button")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Lu Wei <luwei32@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 09:48:03 +02:00
..
chrome platform/chrome: cros_ec_proto: check for NULL transfer function 2019-06-15 11:54:55 +02:00
goldfish
mips MIPS: Loongson: Fix return value of loongson_hwmon_init 2020-01-27 14:46:51 +01:00
olpc
x86 platform/x86: intel-vbtn: Fix return value check in check_acpi_dev() 2020-08-21 09:48:03 +02:00
Kconfig
Makefile