FreeBSD Bugzilla – Attachment 224929 Details for
Bug 255865
[PATCH] dev/ocs_fc: Fix uaf & double free bugs in ocs_hw_async_call
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
returns error message if sli_cmd_common_nop() failed
0001-dev-ocs_fc-uaf-df-ocs_hw_async_call.patch (text/plain), 472 bytes, created by
lylgood
on 2021-05-14 10:47:40 UTC
(
hide
)
Description:
returns error message if sli_cmd_common_nop() failed
Filename:
MIME Type:
Creator:
lylgood
Created:
2021-05-14 10:47:40 UTC
Size:
472 bytes
patch
obsolete
>diff --git a/sys/dev/ocs_fc/ocs_hw.c b/sys/dev/ocs_fc/ocs_hw.c >index d28d5e4a08b7..c3aaf4bc9d7d 100644 >--- a/sys/dev/ocs_fc/ocs_hw.c >+++ b/sys/dev/ocs_fc/ocs_hw.c >@@ -11800,6 +11800,8 @@ ocs_hw_async_call(ocs_hw_t *hw, ocs_hw_async_cb_t callback, void *arg) > ocs_free(hw->os, ctx, sizeof(*ctx)); > rc = -1; > } >+ if (rc) >+ return rc; > > if (ocs_hw_command(hw, ctx->cmd, OCS_CMD_NOWAIT, ocs_hw_async_cb, ctx)) { > ocs_log_err(hw->os, "COMMON_NOP command failure\n");
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 255865
: 224929 |
225301