]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: marvell: Fix missing memory allocation modifier
authorMiquel Raynal <miquel.raynal@free-electrons.com>
Fri, 19 Jan 2018 17:39:01 +0000 (18:39 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 20 Jan 2018 09:37:50 +0000 (10:37 +0100)
commit19cb6c1c9734f0b7afa74a322e94d687b4f61f1b
tree84d3d1f83b509ddaa6c0a006f9a09a6162150b18
parent5a4c5496d46ea09ea13adee07ed8066e1283ab95
mtd: nand: marvell: Fix missing memory allocation modifier

The function marvell_nfc_init_dma() allocates a DMA buffer without the
GFP_KERNEL modifier, that triggers this warning:
"marvell_nfc_init_dma() error: no modifiers for allocation."

Fix this by using (GFP_KERNEL | GFP_DMA) instead of only GFP_DMA as the
probe happens in non-interrupt context.

Fixes: 8cfde04381f0 ("mtd: nand: add reworked Marvell NAND controller driver")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/marvell_nand.c