]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ntb_perf: Delete duplicate dmaengine_unmap_put() call in perf_copy_chunk()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 23 Sep 2024 08:38:11 +0000 (10:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:33:42 +0000 (14:33 +0200)
commit5b36f9e8fa542115e8ab99b37ac37939c2a4221f
treeb8190deb17fab75f9a82fb3922d8cc276fce44af
parent16d6b2527f0d0bc77aa88a00b50e8ff109765d3e
ntb_perf: Delete duplicate dmaengine_unmap_put() call in perf_copy_chunk()

commit 4279e72cab31dd3eb8c89591eb9d2affa90ab6aa upstream.

The function call “dmaengine_unmap_put(unmap)” was used in an if branch.
The same call was immediately triggered by a subsequent goto statement.
Thus avoid such a call repetition.

This issue was detected by using the Coccinelle software.

Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support")
Cc: stable@vger.kernel.org
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/test/ntb_perf.c