diff options
| author | Qiuxu Zhuo <[email protected]> | 2018-11-16 15:33:36 +0800 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2018-11-16 11:17:11 +0100 |
| commit | a6a386152a89f650ad93ebdf4ab160914e75ca20 (patch) | |
| tree | f35bfe1605a00791c4d50be878b5fa1d16f62387 | |
| parent | 861e6ed667c83d64a42b0db41a22d6b4de4e913f (diff) | |
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]
| -rw-r--r-- | drivers/edac/skx_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c index a99ea61dad32..b23c8aaa5f2b 100644 --- a/drivers/edac/skx_edac.c +++ b/drivers/edac/skx_edac.c @@ -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); |