Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257835
b: refs/heads/master
c: 9d04516
h: refs/heads/master
i:
  257833: 556ff0f
  257831: 3663ed5
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Jun 29, 2011
1 parent 1e15a2b commit a7c2a54
Show file tree
Hide file tree
Showing 3 changed files with 6 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: c682d602d0f9751c92e07c196be27d8fac6ec3ed
refs/heads/master: 9d04516310aaef3970c642a54531a52123001178
6 changes: 2 additions & 4 deletions trunk/drivers/scsi/be2iscsi/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ static int beiscsi_setup_boot_info(struct beiscsi_hba *phba)
return 0;

free_kset:
if (phba->boot_kset)
iscsi_boot_destroy_kset(phba->boot_kset);
iscsi_boot_destroy_kset(phba->boot_kset);
return -ENOMEM;
}

Expand Down Expand Up @@ -4149,8 +4148,7 @@ static void beiscsi_remove(struct pci_dev *pcidev)
phba->ctrl.mbox_mem_alloced.size,
phba->ctrl.mbox_mem_alloced.va,
phba->ctrl.mbox_mem_alloced.dma);
if (phba->boot_kset)
iscsi_boot_destroy_kset(phba->boot_kset);
iscsi_boot_destroy_kset(phba->boot_kset);
iscsi_host_remove(phba->shost);
pci_dev_put(phba->pcidev);
iscsi_host_free(phba->shost);
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/iscsi_boot_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ void iscsi_boot_destroy_kset(struct iscsi_boot_kset *boot_kset)
{
struct iscsi_boot_kobj *boot_kobj, *tmp_kobj;

if (!boot_kset)
return;

list_for_each_entry_safe(boot_kobj, tmp_kobj,
&boot_kset->kobj_list, list)
iscsi_boot_remove_kobj(boot_kobj);
Expand Down

0 comments on commit a7c2a54

Please sign in to comment.