leak in do_ubd_request
authorMiklos Szeredi <miklos@szeredi.hu>
Thu, 29 Nov 2007 00:21:52 +0000 (16:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 29 Nov 2007 17:24:53 +0000 (09:24 -0800)
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/ubd_kern.c

index 7e6cdde62ead261e6140c30cc51d8517e0b65aac..b1a77b11f08915b01a18bf14d6cb2817160558da 100644 (file)
@@ -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;
                        }