Forráskód Böngészése

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 <andriy.shevchenko@linux.intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Andy Shevchenko 10 éve
szülő
commit
ad53b26cd1
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      drivers/dma/hsu/hsu.c

+ 2 - 2
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;