diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-03-16 09:53:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 23:02:49 +0100 |
commit | ad53b26cd140fbea92d79a449c8ddb8d1a6f5f26 (patch) | |
tree | b253524b000d7b737e9eb98d0b95d6e41a068b17 /drivers/dma/hsu | |
parent | dmaengine: hsu: remove redundant pieces of code (diff) | |
download | linux-ad53b26cd140fbea92d79a449c8ddb8d1a6f5f26.tar.xz linux-ad53b26cd140fbea92d79a449c8ddb8d1a6f5f26.zip |
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>
Diffstat (limited to 'drivers/dma/hsu')
-rw-r--r-- | drivers/dma/hsu/hsu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |