ocs_fc: Fix memory leak in ocs_scsi_io_alloc()

PR: 254690
Approved by: mav(mentor)
MFC after: 2 weeks
This commit is contained in:
Ram Kishore Vegesna 2021-04-19 21:10:59 +05:30
parent 47bc8fc9ae
commit fc620f9782

View File

@ -201,6 +201,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;
}