From: Akinobu Mita Date: Tue, 17 Oct 2006 07:10:27 +0000 (-0700) Subject: [PATCH] rd: memory leak on rd_init() failure X-Git-Tag: v2.6.19-rc3~163 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6f94dfe9db4d19a39e774cfafa5c9428a9fdbc;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed