Re: [PATCH] misc: ocxl: fix possible refcount leak in afu_ioctl()

2022-08-24 Thread Frederic Barrat
On 24/08/2022 10:26, Hangyu Hua wrote: eventfd_ctx_put need to be called to put the refcount that gotten by eventfd_ctx_fdget when ocxl_irq_set_handler fails. Fixes: 060146614643 ("ocxl: move event_fd handling to frontend") Signed-off-by: Hangyu Hua --- Thanks for fixing it! LGTM Acked-b

[PATCH] misc: ocxl: fix possible refcount leak in afu_ioctl()

2022-08-24 Thread Hangyu Hua
eventfd_ctx_put need to be called to put the refcount that gotten by eventfd_ctx_fdget when ocxl_irq_set_handler fails. Fixes: 060146614643 ("ocxl: move event_fd handling to frontend") Signed-off-by: Hangyu Hua --- drivers/misc/ocxl/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dr