FreeBSD Bugzilla – Attachment 234009 Details for
Bug 264056
mlx4(4) Fix resource leak in mlx4_opreq_action()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
a possible patch
0001-mlx4-Fix-a-resource-leak-in-mlx4_opreq_action.patch (text/plain), 971 bytes, created by
ruc_gongyuanjun
on 2022-05-18 03:04:50 UTC
(
hide
)
Description:
a possible patch
Filename:
MIME Type:
Creator:
ruc_gongyuanjun
Created:
2022-05-18 03:04:50 UTC
Size:
971 bytes
patch
obsolete
>From bf26941ccc33c5dc5b579a3234294b9f835f643c Mon Sep 17 00:00:00 2001 >From: Yuanjun Gong <ruc_gongyuanjun@163.com> >Date: Wed, 18 May 2022 11:01:28 +0800 >Subject: [PATCH 1/1] mlx4: Fix a resource leak in mlx4_opreq_action() > >mailbox allocate by mlx4_alloc_cmd_mailbox(dev) should be released >before return. > >Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com> >--- > sys/dev/mlx4/mlx4_core/mlx4_fw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/sys/dev/mlx4/mlx4_core/mlx4_fw.c b/sys/dev/mlx4/mlx4_core/mlx4_fw.c >index 68aa7e76c79d..de83a3bf5a76 100644 >--- a/sys/dev/mlx4/mlx4_core/mlx4_fw.c >+++ b/sys/dev/mlx4/mlx4_core/mlx4_fw.c >@@ -2702,7 +2702,7 @@ void mlx4_opreq_action(struct work_struct *work) > if (err) { > mlx4_err(dev, "Failed to retrieve required operation: %d\n", > err); >- return; >+ goto out; > } > MLX4_GET(modifier, outbox, GET_OP_REQ_MODIFIER_OFFSET); > MLX4_GET(token, outbox, GET_OP_REQ_TOKEN_OFFSET); >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264056
: 234009