Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13947
b: refs/heads/master
c: 2ef8919
h: refs/heads/master
i:
  13945: 4a748fb
  13943: 7930202
v: v3
  • Loading branch information
Alan Stern authored and James Bottomley committed Nov 8, 2005
1 parent 70ed951 commit 82d7133
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 34ea80ec6a02ad02e6b9c75c478c18e5880d6713
refs/heads/master: 2ef8919830a262f10fb5e4a685e95f71a64bce6c
8 changes: 5 additions & 3 deletions trunk/drivers/scsi/scsi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
struct scsi_sense_hdr sshdr;
struct scsi_device *sdev;
struct Scsi_Host *shost = dev_to_shost(&starget->dev);
int ret = 0;

/*
* Only support SCSI-3 and up devices if BLIST_NOREPORTLUN is not set.
Expand Down Expand Up @@ -1169,8 +1170,8 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
/*
* The device probably does not support a REPORT LUN command
*/
kfree(lun_data);
return 1;
ret = 1;
goto out_err;
}

/*
Expand Down Expand Up @@ -1238,6 +1239,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
}
}

out_err:
kfree(lun_data);
out:
scsi_device_put(sdev);
Expand All @@ -1246,7 +1248,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
* the sdev we used didn't appear in the report luns scan
*/
scsi_destroy_sdev(sdev);
return 0;
return ret;
}

struct scsi_device *__scsi_add_device(struct Scsi_Host *shost, uint channel,
Expand Down

0 comments on commit 82d7133

Please sign in to comment.