Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101253
b: refs/heads/master
c: f83cbc7
h: refs/heads/master
i:
  101251: 3e66250
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 15, 2008
1 parent bbdaf9e commit f0b2528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 794cc6804bb946826b7427d205ac391a5370d361
refs/heads/master: f83cbc77b0d5521b4f0f591ede4870316944481a
5 changes: 5 additions & 0 deletions trunk/drivers/scsi/ide-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,8 @@ static void ide_scsi_remove(ide_drive_t *drive)
put_disk(g);

ide_scsi_put(scsi);

drive->scsi = 0;
}

static int ide_scsi_probe(ide_drive_t *);
Expand Down Expand Up @@ -969,6 +971,8 @@ static int ide_scsi_probe(ide_drive_t *drive)
!(host = scsi_host_alloc(&idescsi_template,sizeof(idescsi_scsi_t))))
return -ENODEV;

drive->scsi = 1;

g = alloc_disk(1 << PARTN_BITS);
if (!g)
goto out_host_put;
Expand Down Expand Up @@ -1009,6 +1013,7 @@ static int ide_scsi_probe(ide_drive_t *drive)

put_disk(g);
out_host_put:
drive->scsi = 0;
scsi_host_put(host);
return err;
}
Expand Down

0 comments on commit f0b2528

Please sign in to comment.