Skip to contentSkip to conversation

infiniband/ipath: don't reset disabled devices

PATCH New Nicolas Kaiser 1 participant 1 message Oct 26, 2010 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infiniband/ipath: don't reset disabled devices

The comment some lines above states that disabled devices must not reset.

---
 drivers/infiniband/hw/ipath/ipath_sysfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/infiniband/hw/ipath/ipath_sysfs.c +1 -0
index b8cb2f1..8991677 100644
@@ -557,6 +557,7 @@ static ssize_t store_reset(struct device *dev,
 		dev_info(dev,"Unit %d is disabled, can't reset\n",
 			 dd->ipath_unit);
 		ret = -EINVAL;
+		goto bail;
 	}
 	ret = ipath_reset_device(dd->ipath_unit);
 bail:
Signature · 1 line
1.7.2.2