Skip to content

[PW_SID:1090417] soc: microchip: mpfs-sys-controller: fix resource leak on probe error#1872

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1090417
Closed

[PW_SID:1090417] soc: microchip: mpfs-sys-controller: fix resource leak on probe error#1872
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1090417

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 1090417 applied to workflow__riscv__fixes

Name: soc: microchip: mpfs-sys-controller: fix resource leak on probe error
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1090417
Version: 1

Linux RISC-V bot and others added 2 commits May 2, 2026 08:13
In mpfs_sys_controller_probe(), when device_get_match_data() returns
NULL, it returns -EINVAL directly without freeing the mbox channel
or the allocated sys_controller memory, causing a resource leak.

Fixes: 63b5305 ("soc: microchip: mpfs-sys-controller: add support for pic64gx")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 140.33 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1047.87 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1430.83 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.96 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.90 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 86.38 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
kdoc
Desc: Detects for kdoc errors
Duration: 0.86 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 2.84 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "soc: microchip: mpfs-sys-controller: fix resource leak on probe error"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.47 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 2c3b264 to 2d4fcdd Compare May 10, 2026 02:08
@linux-riscv-bot linux-riscv-bot deleted the pw1090417 branch May 14, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants