Fixes checkpatch warning Signed-off-by: Anuj Gupta <anuj20.g@xxxxxxxxxxx> --- io_uring/eventfd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/io_uring/eventfd.c b/io_uring/eventfd.c index b9384503a2b7..d9836d43725f 100644 --- a/io_uring/eventfd.c +++ b/io_uring/eventfd.c @@ -126,6 +126,7 @@ int io_eventfd_register(struct io_ring_ctx *ctx, void __user *arg, ev_fd->cq_ev_fd = eventfd_ctx_fdget(fd); if (IS_ERR(ev_fd->cq_ev_fd)) { int ret = PTR_ERR(ev_fd->cq_ev_fd); + kfree(ev_fd); return ret; } -- 2.25.1