From: WANG Cong Date: Tue, 6 May 2008 04:45:35 +0000 (+0800) Subject: [Patch] fs/binfmt_elf.c: fix a wrong free X-Git-Tag: v2.6.26-rc4~115^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f719558edf9c84bfbb1f7ad37e84c483282d09f;p=pandora-kernel.git [Patch] fs/binfmt_elf.c: fix a wrong free In kmalloc failing path, we shouldn't free pointers in 'info', because the struct 'info' is uninitilized when kmalloc is called. And when kmalloc returns NULL, it's needless to kfree it. Signed-off-by: WANG Cong Cc: Alexander Viro Reviewed-by: Pekka Enberg -- Signed-off-by: Al Viro --- Reading git-diff-tree failed