[PATCH 5.15 374/565] sh: intc: Fix use-after-free bug in register_intc_controller()