summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2007-11-29 01:21:52 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-29 18:24:53 +0100
commit12429bf9327d41a0692e275bbfce4997f07432f6 (patch)
tree02c0bcb100c9e29b68d536fa3aa7ae91c61092ca /arch/um/drivers
parentuml: fix !NO_HZ busy-loop (diff)
downloadlinux-12429bf9327d41a0692e275bbfce4997f07432f6.tar.xz
linux-12429bf9327d41a0692e275bbfce4997f07432f6.zip
leak in do_ubd_request
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>
Diffstat (limited to 'arch/um/drivers')
-rw-r--r--arch/um/drivers/ubd_kern.c1
1 files changed, 1 insertions, 0 deletions
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;
}