[PATCH] infiniband/ipath: don't reset disabled devices

Previous thread: Re: [PATCH 1/7] USB: gadget: file_storage: put_device() in error recovery by Alan Stern on Tuesday, October 26, 2010 - 8:14 am. (2 messages)

Next thread: [PATCH] sparc32: make CONFIG_SPARC_LEON depends on !SMP to fix build failure by Namhyung Kim on Tuesday, October 26, 2010 - 8:51 am. (7 messages)
From: Nicolas Kaiser
Date: Tuesday, October 26, 2010 - 8:47 am

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

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
---
 drivers/infiniband/hw/ipath/ipath_sysfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/ipath/ipath_sysfs.c b/drivers/infiniband/hw/ipath/ipath_sysfs.c
index b8cb2f1..8991677 100644
--- a/drivers/infiniband/hw/ipath/ipath_sysfs.c
+++ b/drivers/infiniband/hw/ipath/ipath_sysfs.c
@@ -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:
-- 
1.7.2.2
--

Previous thread: Re: [PATCH 1/7] USB: gadget: file_storage: put_device() in error recovery by Alan Stern on Tuesday, October 26, 2010 - 8:14 am. (2 messages)

Next thread: [PATCH] sparc32: make CONFIG_SPARC_LEON depends on !SMP to fix build failure by Namhyung Kim on Tuesday, October 26, 2010 - 8:51 am. (7 messages)