Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271035
b: refs/heads/master
c: 6bc8d2a
h: refs/heads/master
i:
  271033: a188bab
  271031: 4f686b4
v: v3
  • Loading branch information
Hannes Reinecke authored and James Bottomley committed Aug 30, 2011
1 parent dadb56d commit 1ce1350
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 46ccf6b55bfa9fff7d0a9da761f186e98cf2f660
refs/heads/master: 6bc8d2a0c6bb3e52f0c66e6cde6799d1b90b42ba
4 changes: 4 additions & 0 deletions trunk/drivers/scsi/device_handler/scsi_dh.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ store_dh_state(struct device *dev, struct device_attribute *attr,
struct scsi_device_handler *scsi_dh;
int err = -EINVAL;

if (sdev->sdev_state == SDEV_CANCEL ||
sdev->sdev_state == SDEV_DEL)
return -ENODEV;

if (!sdev->scsi_dh_data) {
/*
* Attach to a device handler
Expand Down

0 comments on commit 1ce1350

Please sign in to comment.