Commit 8455ddd1 authored by Ben Collins's avatar Ben Collins

[sbp2]: Fix use-after-free bug.

Signed-off-by: default avatarLuiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: default avatarBen Collins <bcollins@debian.org>
parent 7fb199e8
...@@ -876,10 +876,10 @@ static int sbp2_start_device(struct scsi_id_instance_data *scsi_id) ...@@ -876,10 +876,10 @@ static int sbp2_start_device(struct scsi_id_instance_data *scsi_id)
SBP2_DMA_FREE("login FIFO DMA"); SBP2_DMA_FREE("login FIFO DMA");
} }
kfree(scsi_id);
list_del(&scsi_id->scsi_list); list_del(&scsi_id->scsi_list);
kfree(scsi_id);
SBP2_ERR ("Could not allocate memory for scsi_id"); SBP2_ERR ("Could not allocate memory for scsi_id");
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment