Re: [PATCH RESEND] ARM: DMA: Fix kzalloc flags in __iommu_alloc_buffer()

2015-02-12 Thread Alexandre Courbot
On 02/13/2015 12:32 PM, Will Deacon wrote: On Wed, Feb 11, 2015 at 09:01:41AM +, Alexandre Courbot wrote: There doesn't seem to be any valid reason to allocate the pages array with the same flags as the buffer itself. Doing so can eventually lead to the following safeguard in mm/slab.c to be

Re: [PATCH RESEND] ARM: DMA: Fix kzalloc flags in __iommu_alloc_buffer()

2015-02-12 Thread Will Deacon
On Wed, Feb 11, 2015 at 09:01:41AM +, Alexandre Courbot wrote: > There doesn't seem to be any valid reason to allocate the pages array > with the same flags as the buffer itself. Doing so can eventually lead > to the following safeguard in mm/slab.c to be hit: > > BUG_ON(flags & GFP_SLAB_BUG_M