* [merged] relay-fix-potential-memory-leak.patch removed from -mm tree
@ 2016-06-10 19:12 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-06-10 19:12 UTC (permalink / raw)
To: yizhouzhou, axboe, viro, zhouzhouyi, mm-commits
The patch titled
Subject: kernel/relay.c: fix potential memory leak
has been removed from the -mm tree. Its filename was
relay-fix-potential-memory-leak.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
Subject: kernel/relay.c: fix potential memory leak
When relay_open_buf() fails in relay_open(), code will goto free_bufs,
but chan is nowhere freed.
Link: http://lkml.kernel.org/r/1464777927-19675-1-git-send-email-yizhouzhou@ict.ac.cn
Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/relay.c | 1 +
1 file changed, 1 insertion(+)
diff -puN kernel/relay.c~relay-fix-potential-memory-leak kernel/relay.c
--- a/kernel/relay.c~relay-fix-potential-memory-leak
+++ a/kernel/relay.c
@@ -614,6 +614,7 @@ free_bufs:
kref_put(&chan->kref, relay_destroy_channel);
mutex_unlock(&relay_channels_mutex);
+ kfree(chan);
return NULL;
}
EXPORT_SYMBOL_GPL(relay_open);
_
Patches currently in -mm which might be from yizhouzhou@ict.ac.cn are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-10 19:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10 19:12 [merged] relay-fix-potential-memory-leak.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.