diff options
| author | Lu Wei <[email protected]> | 2020-07-10 09:30:18 +0000 |
|---|---|---|
| committer | Andy Shevchenko <[email protected]> | 2020-07-14 12:43:08 +0000 |
| commit | 64dd4a5a7d214a07e3d9f40227ec30ac8ba8796e (patch) | |
| tree | 154c77f3e4b50038726d8f180c148e821324c98e /lib/test-string_helpers.c | |
| parent | platform/x86: intel-hid: Fix return value check in check_acpi_dev() (diff) | |
| download | kernel-64dd4a5a7d214a07e3d9f40227ec30ac8ba8796e.tar.gz kernel-64dd4a5a7d214a07e3d9f40227ec30ac8ba8796e.zip | |
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 <[email protected]>
Signed-off-by: Lu Wei <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
