diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-10-17 00:10:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-17 08:18:48 -0700 |
commit | ea6f94dfe9db4d19a39e774cfafa5c9428a9fdbc (patch) | |
tree | 22c0b158dd9bf54e516eb7a9d6f50e3405b729d7 /mm/fadvise.c | |
parent | 3864c4894a7f4c03d69a90082a5bb0ab10e437ab (diff) |
[PATCH] rd: memory leak on rd_init() failure
If RAM disk driver initialization fails due to blk_alloc_queue() faulure, the
gendisk structs stored in rd_disks[] will not be freed completely.
This patch resolves that memory leak case by doing alloc_disk() and
blk_alloc_queue() at the same time.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/fadvise.c')
0 files changed, 0 insertions, 0 deletions