diff mbox series

[GIT,PULL] SCSI fixes for 5.9-rc5

Message ID 1600209754.5092.24.camel@HansenPartnership.com
State New
Headers show
Series [GIT,PULL] SCSI fixes for 5.9-rc5 | expand

Commit Message

James Bottomley Sept. 15, 2020, 10:42 p.m. UTC
Just one fix in libsas for a resource leak in an error path.

The patch is available here:

git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes

The short changelog is:

Dan Carpenter (1):
      scsi: libsas: Fix error path in sas_notify_lldd_dev_found()

And the diffstat:

 drivers/scsi/libsas/sas_discover.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

With full diff below.

James

---

Comments

pr-tracker-bot@kernel.org Sept. 16, 2020, 7 p.m. UTC | #1
The pull request you sent on Tue, 15 Sep 2020 15:42:34 -0700:

> git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes


has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/9803ab172228d8509c72b34c703b9fe67cb94ddc

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
diff mbox series

Patch

diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c
index daf951b0b3f5..13ad2b3d314e 100644
--- a/drivers/scsi/libsas/sas_discover.c
+++ b/drivers/scsi/libsas/sas_discover.c
@@ -182,10 +182,11 @@  int sas_notify_lldd_dev_found(struct domain_device *dev)
 		pr_warn("driver on host %s cannot handle device %016llx, error:%d\n",
 			dev_name(sas_ha->dev),
 			SAS_ADDR(dev->sas_addr), res);
+		return res;
 	}
 	set_bit(SAS_DEV_FOUND, &dev->state);
 	kref_get(&dev->kref);
-	return res;
+	return 0;
 }