Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161092
b: refs/heads/master
c: f4395b6
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and James Bottomley committed Sep 5, 2009
1 parent d5096af commit cfaabd2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24680defdb55e073c5e43d14318a164b842d8ce7
refs/heads/master: f4395b652636398eb4712e6f3caf79c9a6c02e21
12 changes: 8 additions & 4 deletions trunk/drivers/s390/scsi/zfcp_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,10 @@ struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *port, u64 fcp_lun)
}
read_unlock_irq(&zfcp_data.config_lock);

if (device_register(&unit->sysfs_device))
goto err_out_free;
if (device_register(&unit->sysfs_device)) {
put_device(&unit->sysfs_device);
return ERR_PTR(-EINVAL);
}

if (sysfs_create_group(&unit->sysfs_device.kobj,
&zfcp_sysfs_unit_attrs)) {
Expand Down Expand Up @@ -675,8 +677,10 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
}
read_unlock_irq(&zfcp_data.config_lock);

if (device_register(&port->sysfs_device))
goto err_out_free;
if (device_register(&port->sysfs_device)) {
put_device(&port->sysfs_device);
goto err_out;
}

retval = sysfs_create_group(&port->sysfs_device.kobj,
&zfcp_sysfs_port_attrs);
Expand Down

0 comments on commit cfaabd2

Please sign in to comment.