Patch 2.6.32.35 to 2.6.32.36
/drivers/pci/pci-sysfs.c
blob:0964b4c7e4c1999a2876ef7b6c87c5b22632a246 -> blob:8313311bd3a74e655029a99bcf628a11f2e28520
--- drivers/pci/pci-sysfs.c
+++ drivers/pci/pci-sysfs.c
@@ -939,7 +939,12 @@ static ssize_t reset_store(struct device
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);