Re: [PATCH] kernel/irq: Limit validation of cpumask_var_t to CONFIG_CPUMASK_OFFSTACK=y

2017-04-12 Thread Matthias Kaehlcke
Hi Thomas, El Wed, Apr 12, 2017 at 09:23:58AM +0200 Thomas Gleixner ha dit: > On Tue, 11 Apr 2017, Matthias Kaehlcke wrote: > > With CONFIG_CPUMASK_OFFSTACK=y cpumask_var_t is a struct cpumask > > pointer, otherwise a struct cpumask array with a single element. > > > > irq_thread_check_affinity(

Re: [PATCH] kernel/irq: Limit validation of cpumask_var_t to CONFIG_CPUMASK_OFFSTACK=y

2017-04-12 Thread Thomas Gleixner
On Tue, 11 Apr 2017, Matthias Kaehlcke wrote: > With CONFIG_CPUMASK_OFFSTACK=y cpumask_var_t is a struct cpumask > pointer, otherwise a struct cpumask array with a single element. > > irq_thread_check_affinity() validates the cpumask_var_t field in the > interrupt descriptor by checking if it is n

[PATCH] kernel/irq: Limit validation of cpumask_var_t to CONFIG_CPUMASK_OFFSTACK=y

2017-04-11 Thread Matthias Kaehlcke
With CONFIG_CPUMASK_OFFSTACK=y cpumask_var_t is a struct cpumask pointer, otherwise a struct cpumask array with a single element. irq_thread_check_affinity() validates the cpumask_var_t field in the interrupt descriptor by checking if it is not NULL. This works for both CONFIG_CPUMASK_OFFSTACK=y/n