Skip to content
Commit c6b97bcf authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Borislav Petkov
Browse files

EDAC: Properly unwind on failure path in edac_init()



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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Link: http://lkml.kernel.org/r/1423203162-26368-1-git-send-email-khoroshilov@ispras.ru


Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent fc7cc6b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment