projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5bbef0
)
IB/ipath: Don't reset disabled devices
author
Nicolas Kaiser
<nikai@nikai.net>
Tue, 26 Oct 2010 15:47:52 +0000
(15:47 +0000)
committer
Roland Dreier
<roland@purestorage.com>
Mon, 14 Mar 2011 21:25:59 +0000
(14:25 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ipath/ipath_sysfs.c
b/drivers/infiniband/hw/ipath/ipath_sysfs.c
index b8cb2f145ae43fc90f9787368b57c9d3eb840c23..8991677e9a082fed4827e914eb282d1437adcb41 100644
(file)
--- 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: