[PATCH openEuler-5.10-LTS v2 06/82] rtc: fix use-after-free on device removal