From: Andy Shevchenko Date: Mon, 16 Mar 2015 08:53:58 +0000 (+0200) Subject: dmaengine: hsu: move memory allocation to GFP_NOWAIT X-Git-Tag: v4.14-rc1~5525^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad53b26cd140fbea92d79a449c8ddb8d1a6f5f26;p=platform%2Fkernel%2Flinux-rpi.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 e649b62..9b84def 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;