Re: [PATCH 2/2] sh_eth: fix WARNING in dma_free_coherent()

2015-10-30 Thread Sergei Shtylyov
Hello. On 10/30/2015 02:11 AM, Sergei Shtylyov wrote: Iff the first dma_alloc_coherent() call fails in sh_eth_ring_init(), the following is printed to the kernel console: WARNING: CPU: 0 PID: 1 at drivers/base/dma-mapping.c:334 dma_common_free_remap+0x48/0x6c() Oops, I got the function

Re: [PATCH 2/2] sh_eth: fix WARNING in dma_free_coherent()

2015-10-29 Thread Sergei Shtylyov
On 10/30/2015 12:52 AM, Sergei Shtylyov wrote: Iff the first dma_alloc_coherent() call fails in sh_eth_ring_init(), the following is printed to the kernel console: WARNING: CPU: 0 PID: 1 at drivers/base/dma-mapping.c:334 dma_common_free_remap+0x48/0x6c() Oops, I got the function name wr

[PATCH 2/2] sh_eth: fix WARNING in dma_free_coherent()

2015-10-29 Thread Sergei Shtylyov
Iff the first dma_alloc_coherent() call fails in sh_eth_ring_init(), the following is printed to the kernel console: WARNING: CPU: 0 PID: 1 at drivers/base/dma-mapping.c:334 dma_common_free_remap+0x48/0x6c() trying to free invalid coherent area: (null) Modules linked in: CPU: 0 PID: 1 Comm: s