Re: [PATCH v2] soc: ti: QMSS: Fix usage of irq_set_affinity_hint

2018-11-02 Thread Olof Johansson
On Wed, Oct 31, 2018 at 08:41:34AM +, Marc Zyngier wrote: > The Keystone QMSS driver is pretty damaged, in the sense that it > does things like this: > > irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); > > where cpu_map is a local variable. As we leave the function, this > will point

[PATCH v2] soc: ti: QMSS: Fix usage of irq_set_affinity_hint

2018-10-31 Thread Marc Zyngier
The Keystone QMSS driver is pretty damaged, in the sense that it does things like this: irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); where cpu_map is a local variable. As we leave the function, this will point to nowhere-land, and things will end-up badly. Instead, let's use a prope