| commit | 433c1941c2776165e02d2273be32daf75f123b75 | [log] [tgz] |
|---|---|---|
| author | Borislav Petkov <borislav.petkov@amd.com> | Tue Mar 29 18:10:53 2011 +0200 |
| committer | Prashant Somashekar <prashsomash@gmail.com> | Thu Apr 14 18:01:33 2011 -0400 |
| tree | c5d4673d26aba8472cccd595408413f1dcbbdb7b | |
| parent | 5b74dec635bd4a0838d1efcdd685e0b358a0d7df [diff] |
amd64_edac: Fix potential memleak commit a9f0fbe2bbf328f869fc5ee5a12c6a4118c32689 upstream. 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. Reported-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>