Re: powerpc/powernv: Fix missing attr initialisation in opal_export_attrs()

2017-04-27 Thread Michael Ellerman
On Thu, 2017-04-27 at 01:37:32 UTC, Michael Ellerman wrote: > In opal_export_attrs() we dynamically allocate some bin_attributes. They're > allocated with kmalloc() and although we initialise most of the fields, we > don't > initialise write() or mmap(), and in particular we don't initialise the

[PATCH] powerpc/powernv: Fix missing attr initialisation in opal_export_attrs()

2017-04-26 Thread Michael Ellerman
In opal_export_attrs() we dynamically allocate some bin_attributes. They're allocated with kmalloc() and although we initialise most of the fields, we don't initialise write() or mmap(), and in particular we don't initialise the lockdep related fields in the embedded struct attribute. This leads t