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:
parent
47bc8fc9ae
commit
fc620f9782
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user