HomeFreeBSD

ocs_fc: Fix use after free bug in ocs_hw_async_call()

Description

ocs_fc: Fix use after free bug in ocs_hw_async_call()

Freed ctx is used in the later callee ocs_hw_command(),
which is a use after free bug.

Return error if sli_cmd_common_nop() failed.

PR: 255865
Reported by: lylgood@foxmail.com
Approved by:: markj

Details

Provenance
Ram Kishore Vegesna <ram@FreeBSD.org>Authored on May 28 2021, 5:51 AM
Parents
rGdd722ccd6efc: ocs_fc: Fix a use after free in ocs_sport_free
Branches
Unknown
Tags
Unknown