[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20101026174752.0f7f28dd@absol.kitzblitz>
Date: Tue, 26 Oct 2010 17:47:52 +0200
From: Nicolas Kaiser <nikai@...ai.net>
To: Ralph Campbell <infinipath@...gic.com>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] infiniband/ipath: don't reset disabled devices
The comment some lines above states that disabled devices
must not reset.
Signed-off-by: Nicolas Kaiser <nikai@...ai.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists