The patch titled Subject: drivers/scsi/ufs: fix potential NULL pointer dereferencing error in ufshcd_probe() has been removed from the -mm tree. Its filename was drivers-scsi-ufs-fix-potential-null-pointer-dereferencing-error-in-ufshcd_probe.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ From: Namjae Jeon <linkinjeon@xxxxxxxxx> Subject: drivers/scsi/ufs: fix potential NULL pointer dereferencing error in ufshcd_probe() Avoid dereferencing a NULL pointer if scsi_host_alloc() failed. Signed-off-by: Namjae Jeon <linkinjeon@xxxxxxxxx> Acked-by: Santosh Y <santoshsy@xxxxxxxxx> Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/scsi/ufs/ufshcd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/scsi/ufs/ufshcd.c~drivers-scsi-ufs-fix-potential-null-pointer-dereferencing-error-in-ufshcd_probe drivers/scsi/ufs/ufshcd.c --- a/drivers/scsi/ufs/ufshcd.c~drivers-scsi-ufs-fix-potential-null-pointer-dereferencing-error-in-ufshcd_probe +++ a/drivers/scsi/ufs/ufshcd.c @@ -1838,7 +1838,7 @@ ufshcd_probe(struct pci_dev *pdev, const err = pci_request_regions(pdev, UFSHCD); if (err < 0) { dev_err(&pdev->dev, "request regions failed\n"); - goto out_disable; + goto out_host_put; } hba->mmio_base = pci_ioremap_bar(pdev, 0); @@ -1927,8 +1927,9 @@ out_iounmap: iounmap(hba->mmio_base); out_release_regions: pci_release_regions(pdev); -out_disable: +out_host_put: scsi_host_put(host); +out_disable: pci_clear_master(pdev); pci_disable_device(pdev); out_error: _ Patches currently in -mm which might be from linkinjeon@xxxxxxxxx are origin.patch linux-next.patch drivers-scsi-ufs-reverse-the-ufshcd_is_device_present-logic.patch ufs-fix-incorrect-return-value-about-success-and-failed.patch fat-add-fat_msg_ratelimit.patch fat-use-fat_msg_ratelimit-in-fat__get_entry.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