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: 06014661 ("ocxl: move event_fd handling to frontend") Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com> Acked-by: NAlastair D'Silva <alastair@d-silva.org> Acked-by: NAndrew Donnellan <ajd@linux.ibm.com> Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Showing
想要评论请 注册 或 登录