]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
EDAC: Properly unwind on failure path in edac_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 6 Feb 2015 06:12:42 +0000 (22:12 -0800)
committerJiri Slaby <jslaby@suse.cz>
Wed, 10 Jun 2015 11:43:11 +0000 (13:43 +0200)
commitfd4420aba84b13da95605dfec7721d10dcdcad46
tree516d019ecb324625f54c3d3c2a744248f3da7ad1
parent5d557c9cc29b05fd281ce704070cd487723fc07c
EDAC: Properly unwind on failure path in edac_init()

commit c6b97bcf8e3ee6643a7f90a54d1ef3f9e12ec245 upstream.

edac_init() does not deallocate already allocated resources on failure
path.

Found by Linux Driver Verification project (linuxtesting.org).

 [ Boris: The unwind path functions have __exit annotation but are being
   used in an __init function, leading to section mismatches. Drop the
   section annotation and make them normal functions. ]

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Link: http://lkml.kernel.org/r/1423203162-26368-1-git-send-email-khoroshilov@ispras.ru
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/edac/edac_mc_sysfs.c
drivers/edac/edac_module.c