HomeFreeBSD

ocs_fc: Fix a use after free in ocs_sport_free

Description

ocs_fc: Fix a use after free in ocs_sport_free

Domain which could be freed is used while freeing the sport.
Use ocs from sport.

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

(cherry picked from commit dd722ccd6efcaed5c6056e51a044db7f1a5b4a0d)

Details

Provenance
Ram Kishore Vegesna <ram@FreeBSD.org>Authored on May 28 2021, 5:26 AM
Parents
rG12e6cbd15853: ocs_fc: Fix memory leak in ocs_scsi_io_alloc()
Branches
Unknown
Tags
Unknown

Event Timeline

Ram Kishore Vegesna <ram@FreeBSD.org> committed rG241d13765504: ocs_fc: Fix a use after free in ocs_sport_free (authored by Ram Kishore Vegesna <ram@FreeBSD.org>).Dec 17 2021, 9:45 AM