amd8111_edac: Fix leaks in probe error paths
authorJean Delvare <jdelvare@suse.de>
Mon, 24 Feb 2014 14:45:34 +0000 (15:45 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 25 Feb 2014 09:09:09 +0000 (10:09 +0100)
commit5576fb8696bf8d8ae60278c2aa4dc23eae9eb86e
tree0f33e5b6fca077299ff6a8f5bfccc5522bc85702
parent0e089c182889e1551dcaaea8ee1639bfa81896a3
amd8111_edac: Fix leaks in probe error paths

Both probe error paths are incomplete and leak memory and device
references. Add the missing cleanups.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Link: http://lkml.kernel.org/r/20140224154534.5a3b797a@endymion.delvare
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd8111_edac.c