Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197900
b: refs/heads/master
c: 447c5dd
h: refs/heads/master
v: v3
  • Loading branch information
Michal Schmidt authored and Jesse Barnes committed May 11, 2010
1 parent aca4295 commit b2dbbd9
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 3196180a54b593838c0b6496e5b524a2f69bb190
refs/heads/master: 447c5dd7338638f526e9bcf7dcf69b4da5835c7d
7 changes: 6 additions & 1 deletion trunk/drivers/pci/pci-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,12 @@ static ssize_t reset_store(struct device *dev,

if (val != 1)
return -EINVAL;
return pci_reset_function(pdev);

result = pci_reset_function(pdev);
if (result < 0)
return result;

return count;
}

static struct device_attribute reset_attr = __ATTR(reset, 0200, NULL, reset_store);
Expand Down

0 comments on commit b2dbbd9

Please sign in to comment.