From: Catalin Marinas Date: Fri, 29 Sep 2006 09:00:25 +0000 (-0700) Subject: [PATCH] Fix memory leak in vc_resize/vc_allocate X-Git-Tag: v2.6.19-rc1~746 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=254e948b2908dd50df9dca4e6ed14b6cc8524fc9;p=pandora-kernel.git [PATCH] Fix memory leak in vc_resize/vc_allocate Memory leaks can happen in the vc_resize() function in drivers/char/vt.c because of the vc->vc_screenbuf variable overriding in vc_allocate(). The kmemleak reported trace is as follows: <__kmalloc> This patch no longer allocates a screen buffer in vc_allocate() if it was already allocated by vc_resize(). Signed-off-by: Catalin Marinas Acked-by: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed