diff options
author | weiping zhang <zhangweiping@didichuxing.com> | 2017-08-11 01:52:17 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-24 22:29:06 -0400 |
commit | 92227b8d3d7fd0c9a5b78c3967a756e83a43b36d (patch) | |
tree | bda123f86f2955c302beda0245a926da16685ac2 /drivers/scsi/aha1542.c | |
parent | 085e56766f74e8fdafb0e988c150e28464747cdc (diff) | |
download | lwn-92227b8d3d7fd0c9a5b78c3967a756e83a43b36d.tar.gz lwn-92227b8d3d7fd0c9a5b78c3967a756e83a43b36d.zip |
scsi: scsi-sysfs: Adjust error returned for adapter reset request
If scsi_host_template->host_reset is NULL and the user requests an
adapter reset through
echo adapter > /sys/class/scsi_host/hostx/host_reset
-EINVAL will be returned even though the "adapter" argument is perfectly
valid.
Change this so that we only return -EINVAL if the provided string is
invalid. If the host does not implement a ->host_reset function we'll
return -EOPNOTSUPP.
[mkp: tweaked patch description]
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aha1542.c')
0 files changed, 0 insertions, 0 deletions