EDAC, skx: Fix function calling order in skx_exit()

The order of function calling in skx_exit() is not the reversed order in
skx_init(). Fix it.

Signed-off-by: Qiuxu Zhuo <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>
CC: Tony Luck <[email protected]>
CC: [email protected]
CC: linux-edac <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
This commit is contained in:
Qiuxu Zhuo 2018-11-16 15:33:36 +08:00 • committed by Borislav Petkov
commit a6a386152a

View file

@ -1339,11 +1339,11 @@ static void __exit skx_exit(void)
{
edac_dbg(2, "\n");
mce_unregister_decode_chain(&skx_mce_dec);
skx_remove();
teardown_skx_debug();
if (nvdimm_count)
skx_adxl_put();
kfree(skx_msg);
teardown_skx_debug();
skx_remove();
}
module_init(skx_init);