From: Miklos Szeredi Date: Thu, 29 Nov 2007 00:21:52 +0000 (-0800) Subject: leak in do_ubd_request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12429bf9327d41a0692e275bbfce4997f07432f6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git leak in do_ubd_request Signed-off-by: Miklos Szeredi Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 7e6cdde62ead..b1a77b11f089 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -1128,6 +1128,7 @@ static void do_ubd_request(struct request_queue *q) "errno = %d\n", -n); else if(list_empty(&dev->restart)) list_add(&dev->restart, &restart); + kfree(io_req); return; }