From: Borislav Petkov Date: Tue, 29 Mar 2011 16:10:53 +0000 (+0200) Subject: amd64_edac: Fix potential memleak X-Git-Tag: v2.6.39-rc1~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f0fbe2bbf328f869fc5ee5a12c6a4118c32689;p=pandora-kernel.git amd64_edac: Fix potential memleak We check the pointers together but at least one of them could be invalid due to failed allocation. Since we cannot continue if either of the two allocations has failed, exit early by freeing them both. Cc: # 38.x Reported-by: Mauro Carvalho Chehab Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed