diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-11-16 17:21:14 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-18 16:42:07 -0800 |
commit | 6dceaa9f56e22d0f9b4c4ad2ed9e04e315ce7fe5 (patch) | |
tree | 64bcf02a80ddf3c915c55c92af4cd3b8f374c052 /drivers/cpuidle | |
parent | d8c19014bba8f565d8a2f1f46b4e38d1d97bf1a7 (diff) | |
download | linux-stable-6dceaa9f56e22d0f9b4c4ad2ed9e04e315ce7fe5.tar.gz linux-stable-6dceaa9f56e22d0f9b4c4ad2ed9e04e315ce7fe5.tar.bz2 linux-stable-6dceaa9f56e22d0f9b4c4ad2ed9e04e315ce7fe5.zip |
atm: nicstar: Unmap DMA on send error
The `skb' is mapped for DMA in ns_send() but does not unmap DMA in case
push_scqe() fails to submit the `skb'. The memory of the `skb' is
released so only the DMA mapping is leaking.
Unmap the DMA mapping in case push_scqe() failed.
Fixes: 864a3ff635fa7 ("atm: [nicstar] remove virt_to_bus() and support 64-bit platforms")
Cc: Chas Williams <3chas3@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions