diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-05-04 07:04:30 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-05-06 20:21:56 +1000 |
commit | 6be6a8de1b55e719e3f95894910743719065d6a1 (patch) | |
tree | 89a12e24df0c9ee8acf975288c0c7800a97d67bb /arch/powerpc/mm | |
parent | 67d53f30e23ec66aa7bbdd1592d5e64d46876190 (diff) | |
download | linux-6be6a8de1b55e719e3f95894910743719065d6a1.tar.bz2 |
ocxl: Fix return value check in afu_ioctl()
In case of error, the function eventfd_ctx_fdget() returns ERR_PTR() and
never returns NULL. The NULL test in the return value check should be
replaced with IS_ERR().
This issue was detected by using the Coccinelle software.
Fixes: 060146614643 ("ocxl: move event_fd handling to frontend")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Alastair D'Silva <alastair@d-silva.org>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm')
0 files changed, 0 insertions, 0 deletions