mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 16:25:42 -04:00
IB/ipath: Don't reset disabled devices
The comment some lines above states that disabled devices must not reset. Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
This commit is contained in:
committed by
Roland Dreier
parent
a5bbef0b2d
commit
2a543904dd
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user