diff options
| author | 2025-11-04 17:48:47 +0800 | |
|---|---|---|
| committer | 2025-11-08 12:11:06 -0500 | |
| commit | 20da637eb545b04753e20c675cfe97b04c7b600b (patch) | |
| tree | c17758ae7a691a1bc3935dc466b712e862e49d5c /include/linux/clk/ssh:/git@git.zx2c4.com | |
| parent | Merge patch series "target: RW/num_cmds stats improvements" (diff) | |
scsi: stex: Fix reboot_notifier leak in probe error path
In stex_probe(), register_reboot_notifier() is called at the beginning,
but if any subsequent initialization step fails, the function returns
without unregistering the notifier, resulting in a resource leak.
Add unregister_reboot_notifier() in the out_disable error path to ensure
proper cleanup on all failure paths.
Fixes: 61b745fa63db ("scsi: stex: Add S6 support")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20251104094847.270-1-vulab@iscas.ac.cn
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux/clk/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
