diff options
author | Ram Kishore Vegesna <ram@FreeBSD.org> | 2021-04-19 15:40:59 +0000 |
---|---|---|
committer | Ram Kishore Vegesna <ram@FreeBSD.org> | 2021-12-17 09:45:59 +0000 |
commit | 12e6cbd158530259d951e3e246a52ddc57fa644b (patch) | |
tree | 94b529c7c16fd47ff9f4c28945095db22f9b2650 | |
parent | e8dbe7bdcf5d9dfbe40b326001b7751e3d42c635 (diff) | |
download | src-12e6cbd158530259d951e3e246a52ddc57fa644b.tar.gz src-12e6cbd158530259d951e3e246a52ddc57fa644b.zip |
ocs_fc: Fix memory leak in ocs_scsi_io_alloc()
PR: 254690
Approved by: mav(mentor)
MFC after: 2 weeks
(cherry picked from commit fc620f9782d1fda5a243fd51a93a0fb46bc80f64)
-rw-r--r-- | sys/dev/ocs_fc/ocs_scsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ocs_fc/ocs_scsi.c b/sys/dev/ocs_fc/ocs_scsi.c index dd1f15cb3877..b11d2678267c 100644 --- a/sys/dev/ocs_fc/ocs_scsi.c +++ b/sys/dev/ocs_fc/ocs_scsi.c @@ -203,6 +203,7 @@ ocs_scsi_io_alloc(ocs_node_t *node, ocs_scsi_io_role_e role) if (io->hio != NULL) { ocs_log_err(node->ocs, "assertion failed: io->hio is not NULL\n"); + ocs_io_free(ocs, io); ocs_unlock(&node->active_ios_lock); return NULL; } |