Message ID | 1558617826-30129-2-git-send-email-maier@linux.ibm.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | d27e5e07f9c49bf2a6a4ef254ce531c1b4fb5a38 |
Headers | show |
Series | zfcp fixes for v5.2-rcX | expand |
diff --git a/drivers/s390/scsi/zfcp_sysfs.c b/drivers/s390/scsi/zfcp_sysfs.c index b277be6f7611..2d78732b270b 100644 --- a/drivers/s390/scsi/zfcp_sysfs.c +++ b/drivers/s390/scsi/zfcp_sysfs.c @@ -261,6 +261,7 @@ static ssize_t zfcp_sysfs_port_remove_store(struct device *dev, if (atomic_read(&port->units) > 0) { retval = -EBUSY; mutex_unlock(&zfcp_sysfs_port_units_mutex); + put_device(&port->dev); /* undo zfcp_get_port_by_wwpn() */ goto out; } /* port is about to be removed, so no more unit_add */