EDAC: Handle error path in edac_mc_sysfs_init() properly
authorDenis Kirjanov <kirjanov@gmail.com>
Thu, 25 Oct 2012 15:42:58 +0000 (19:42 +0400)
committerBorislav Petkov <bp@alien8.de>
Wed, 28 Nov 2012 10:56:52 +0000 (11:56 +0100)
commit2d56b109e3a50cf316e60f07541bbeb1d8fe251a
tree097069078a1e669ec9fe4b5fa8b917e91daa4ee1
parentd5c6770d4cb27bc33aa433cf8fb848ad9af6644b
EDAC: Handle error path in edac_mc_sysfs_init() properly

Make sure proper deregistration happens on all error paths in
edac_mc_sysfs_init.

Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>
[ Boris: cleanup and concretize commit message ]
Signed-off-by: Borislav Petkov <bp@alien8.de>
drivers/edac/edac_mc_sysfs.c