diff options
| author | Masahiro Yamada <[email protected]> | 2017-06-13 22:45:48 +0900 |
|---|---|---|
| committer | Boris Brezillon <[email protected]> | 2017-06-20 09:14:53 +0200 |
| commit | 7d370b2c255612569818134ae0a6d0e46eabfe8b (patch) | |
| tree | 99e1e05b9a16623fa8f382c18340cbedb511cdc5 /drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c | |
| parent | 997cde2a222091270ce0c276e567b68e5615f577 (diff) | |
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 <[email protected]>
Cc: Russell King <[email protected]>
Cc: Lars-Peter Clausen <[email protected]>
Acked-by: Robin Murphy <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c')
0 files changed, 0 insertions, 0 deletions