[PATCH 5.5 34/80] EDAC/mc: Fix use-after-free and memleaks during device removal