linux/drivers/misc/ocxl
Wei Yongjun 6be6a8de1b 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: 0601466146 ("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>
2019-05-06 20:21:56 +10:00
..
afu_irq.c ocxl: move event_fd handling to frontend 2019-05-03 02:55:02 +10:00
config.c ocxl: Remove some unused exported symbols 2019-05-03 02:55:01 +10:00
context.c ocxl: afu_irq only deals with IRQ IDs, not offsets 2019-05-03 02:55:02 +10:00
core.c ocxl: Create a clear delineation between ocxl backend & frontend 2019-05-03 02:55:01 +10:00
file.c ocxl: Fix return value check in afu_ioctl() 2019-05-06 20:21:56 +10:00
Kconfig ocxl: Add Makefile and Kconfig 2018-01-24 11:42:59 +11:00
link.c ocxl: Rename struct link to ocxl_link 2019-05-03 02:55:00 +10:00
main.c
Makefile ocxl: Provide global MMIO accessors for external drivers 2019-05-03 02:55:02 +10:00
mmio.c ocxl: Provide global MMIO accessors for external drivers 2019-05-03 02:55:02 +10:00
ocxl_internal.h ocxl: move event_fd handling to frontend 2019-05-03 02:55:02 +10:00
pasid.c
pci.c ocxl: Create a clear delineation between ocxl backend & frontend 2019-05-03 02:55:01 +10:00
sysfs.c ocxl: Create a clear delineation between ocxl backend & frontend 2019-05-03 02:55:01 +10:00
trace.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
trace.h ocxl: afu_irq only deals with IRQ IDs, not offsets 2019-05-03 02:55:02 +10:00