summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPrasanna Kumar T S M <ptsm@linux.microsoft.com>2026-03-22 16:11:39 +0300
committerBorislav Petkov (AMD) <bp@alien8.de>2026-03-22 21:39:34 +0300
commit1b6f292cb94d95c9bc22e1efe592daf62c60bc2e (patch)
treec81a3d440b4ab870e7ff09886a63d44f44304adb /include
parentfbe230a9a79b62be3c6ac55b24d53ce5dd9202d5 (diff)
downloadlinux-1b6f292cb94d95c9bc22e1efe592daf62c60bc2e.tar.xz
EDAC/versalnet: Fix memory leak in remove and probe error paths
The mcdi object allocated using kzalloc() in the setup_mcdi() is not freed in the remove path or in probe's error handling path leading to a memory leak. Fix it by freeing the allocated memory. Fixes: d5fe2fec6c40d ("EDAC: Add a driver for the AMD Versal NET DDR controller") Signed-off-by: Prasanna Kumar T S M <ptsm@linux.microsoft.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260322131139.1684716-1-ptsm@linux.microsoft.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions