summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-13 16:45:48 +0300
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-06-20 10:14:53 +0300
commit7d370b2c255612569818134ae0a6d0e46eabfe8b (patch)
tree99e1e05b9a16623fa8f382c18340cbedb511cdc5 /ipc
parent997cde2a222091270ce0c276e567b68e5615f577 (diff)
downloadlinux-7d370b2c255612569818134ae0a6d0e46eabfe8b.tar.xz
mtd: nand: denali: use non-managed kmalloc() for DMA buffer
As Russell and Lars stated in the discussion [1], using devm_k*alloc() with DMA is not a good idea. Let's use kmalloc (not kzalloc because no need for zero-out). Also, allocate the buffer as late as possible because it must be freed for any error that follows. [1] https://lkml.org/lkml/2017/3/8/693 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Russell King <rmk+kernel@armlinux.org.uk> Cc: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions