]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
EDAC/altera: Delete an inappropriate dma_free_coherent() call
authorSalah Triki <salah.triki@gmail.com>
Thu, 31 Jul 2025 03:15:27 +0000 (04:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:29:56 +0000 (16:29 +0200)
commit41886580fe97b0c9f3aeb173709dbe2045dad86a
treead80667a7f2638aecd326850c7781753656fda2d
parent0b8f64204eadc7ebb42ff75568574be465f97aa3
EDAC/altera: Delete an inappropriate dma_free_coherent() call

commit ff2a66d21fd2364ed9396d151115eec59612b200 upstream.

dma_free_coherent() must only be called if the corresponding
dma_alloc_coherent() call has succeeded. Calling it when the allocation fails
leads to undefined behavior.

Delete the wrong call.

  [ bp: Massage commit message. ]

Fixes: 71bcada88b0f3 ("edac: altera: Add Altera SDRAM EDAC support")
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/aIrfzzqh4IzYtDVC@pc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/altera_edac.c