summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2007-11-29 03:21:52 +0300
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-29 20:24:53 +0300
commit12429bf9327d41a0692e275bbfce4997f07432f6 (patch)
tree02c0bcb100c9e29b68d536fa3aa7ae91c61092ca /arch/um
parent364e3a3d8a26aae058cf1c257457ad1f6b1cfe4c (diff)
downloadlinux-12429bf9327d41a0692e275bbfce4997f07432f6.tar.xz
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')
-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;
}