[PATCH 5.4 200/321] sh: intc: Fix use-after-free bug in register_intc_controller()