diff options
author | Lu Wei <luwei32@huawei.com> | 2020-07-10 17:30:18 +0800 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-07-14 15:43:08 +0300 |
commit | 64dd4a5a7d214a07e3d9f40227ec30ac8ba8796e (patch) | |
tree | 154c77f3e4b50038726d8f180c148e821324c98e /mm/ksm.c | |
parent | 71fbe886ce6dd0be17f20aded9c63fe58edd2806 (diff) | |
download | linux-64dd4a5a7d214a07e3d9f40227ec30ac8ba8796e.tar.bz2 |
platform/x86: intel-vbtn: Fix return value check in check_acpi_dev()
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 <hulkci@huawei.com>
Signed-off-by: Lu Wei <luwei32@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'mm/ksm.c')
0 files changed, 0 insertions, 0 deletions