Re: [PATCH] powerpc/pkeys: Fix reading of ibm, processor-storage-keys property

2018-09-20 Thread Ram Pai
On Thu, Sep 20, 2018 at 01:38:58AM -0300, Thiago Jung Bauermann wrote: > scan_pkey_feature() uses of_property_read_u32_array() to read the > ibm,processor-storage-keys property and calls be32_to_cpu() on the > value it gets. The problem is that of_property_read_u32_array() already > returns the val

[PATCH] powerpc/pkeys: Fix reading of ibm, processor-storage-keys property

2018-09-19 Thread Thiago Jung Bauermann
scan_pkey_feature() uses of_property_read_u32_array() to read the ibm,processor-storage-keys property and calls be32_to_cpu() on the value it gets. The problem is that of_property_read_u32_array() already returns the value converted to the CPU byte order. The value of pkeys_total ends up more or l