[PATCH 6.6 599/676] sh: intc: Fix use-after-free bug in register_intc_controller()