[PATCH 4.9 19/28] genirq: Prevent use-after-free and work list corruption