Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: qla2xxx: Make qlt_handle_abts_completion() more robust

Avoid that this function crashes if mcmd == NULL.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
e752a04e 85cffefa

+1 -1
+1 -1
drivers/scsi/qla2xxx/qla_target.c
··· 5731 5731 entry->error_subcode2); 5732 5732 ha->tgt.tgt_ops->free_mcmd(mcmd); 5733 5733 } 5734 - } else { 5734 + } else if (mcmd) { 5735 5735 ha->tgt.tgt_ops->free_mcmd(mcmd); 5736 5736 } 5737 5737 }