Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309625
b: refs/heads/master
c: d20ec59
h: refs/heads/master
i:
  309623: 268175d
v: v3
  • Loading branch information
Aaron Lu authored and James Bottomley committed May 22, 2012
1 parent d46bb69 commit a2ae402
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 6192bd7cdc37e2df9391403235b72668a5bf27da
refs/heads/master: d20ec597cba1e8ea407c9a7c668a9e04fc057c83
5 changes: 4 additions & 1 deletion trunk/drivers/scsi/scsi_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ static int scsi_dev_type_suspend(struct device *dev, pm_message_t msg)
err = scsi_device_quiesce(to_scsi_device(dev));
if (err == 0) {
drv = dev->driver;
if (drv && drv->suspend)
if (drv && drv->suspend) {
err = drv->suspend(dev, msg);
if (err)
scsi_device_resume(to_scsi_device(dev));
}
}
dev_dbg(dev, "scsi suspend: %d\n", err);
return err;
Expand Down

0 comments on commit a2ae402

Please sign in to comment.