The patch titled Dereference in drivers/scsi/lpfc/lpfc_ct.c has been added to the -mm tree. Its filename is dereference-in-drivers-scsi-lpfc-lpfc_ctc.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Dereference in drivers/scsi/lpfc/lpfc_ct.c From: Eric Sesterhenn <snakebyte@xxxxxx> If we fail to allocate mp->virt during the first while loop iteration, mlist is still uninitialized, therefore we should check if before dereferencing. Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx> Acked-by: James Smart <James.Smart@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/scsi/lpfc/lpfc_ct.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/scsi/lpfc/lpfc_ct.c~dereference-in-drivers-scsi-lpfc-lpfc_ctc drivers/scsi/lpfc/lpfc_ct.c --- a/drivers/scsi/lpfc/lpfc_ct.c~dereference-in-drivers-scsi-lpfc-lpfc_ctc +++ a/drivers/scsi/lpfc/lpfc_ct.c @@ -188,7 +188,8 @@ lpfc_alloc_ct_rsp(struct lpfc_hba * phba if (!mp->virt) { kfree(mp); - lpfc_free_ct_rsp(phba, mlist); + if (mlist) + lpfc_free_ct_rsp(phba, mlist); return NULL; } _ Patches currently in -mm which might be from snakebyte@xxxxxx are origin.patch git-gfs2.patch remove-unnecessary-check-in-drivers-video-intelfb-intelfbhwc.patch remove-unnecessary-check-in-drivers-net-depcac.patch off-by-one-in-arch-ppc-platforms-mpc8.patch git-scsi-misc.patch remove-unnecessary-check-in-drivers-scsi-sgc.patch dereference-in-drivers-scsi-lpfc-lpfc_ctc.patch possible-dereference-in-drivers-net-wireless-zd1201c.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html