[PATCH openEuler-1.0-LTS 2/2] can: dev: can_restart: fix use after free bug