[PATCH v3 2/2] intel-vbtn: Fix return value check in check_acpi_dev()

2020-07-10 Thread Lu Wei
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: 332e081225fc ("intel-vbtn: new driver for Intel Virtual Button") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- drive

[PATCH v3 2/2] intel-vbtn: Fix return value check in check_acpi_dev()

2020-07-10 Thread Lu Wei
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: 332e0812 ("intel-vbtn: new driver for Intel Virtual Button") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- v2->v3 - Mo