From: Andy Shevchenko Date: Mon, 16 Mar 2015 08:53:58 +0000 (+0200) Subject: dmaengine: hsu: move memory allocation to GFP_NOWAIT X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ad53b26cd140fbea92d79a449c8ddb8d1a6f5f26;p=linux-beck.git dmaengine: hsu: move memory allocation to GFP_NOWAIT The GFP_ATOMIC is too strict, and DMAEngine documentation make an advice to use GFP_NOWAIT. This patch does the conversion. Signed-off-by: Andy Shevchenko Acked-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/dma/hsu/hsu.c b/drivers/dma/hsu/hsu.c index e649b62431e2..9b84def7a353 100644 --- a/drivers/dma/hsu/hsu.c +++ b/drivers/dma/hsu/hsu.c @@ -198,11 +198,11 @@ static struct hsu_dma_desc *hsu_dma_alloc_desc(unsigned int nents) { struct hsu_dma_desc *desc; - desc = kzalloc(sizeof(*desc), GFP_ATOMIC); + desc = kzalloc(sizeof(*desc), GFP_NOWAIT); if (!desc) return NULL; - desc->sg = kcalloc(nents, sizeof(*desc->sg), GFP_ATOMIC); + desc->sg = kcalloc(nents, sizeof(*desc->sg), GFP_NOWAIT); if (!desc->sg) { kfree(desc); return NULL;