diff options
| author | Charles Machalow <[email protected]> | 2018-05-10 23:01:38 +0000 |
|---|---|---|
| committer | Keith Busch <[email protected]> | 2018-05-11 16:51:45 +0000 |
| commit | 4e50d9ebaeaa3c6761d2b513ef7039510c8cf213 (patch) | |
| tree | 34f53556f597922875004c500b741de5a10400c1 /fs/proc/array.c | |
| parent | nvme: fix use-after-free in nvme_free_ns_head (diff) | |
| download | kernel-4e50d9ebaeaa3c6761d2b513ef7039510c8cf213.tar.gz kernel-4e50d9ebaeaa3c6761d2b513ef7039510c8cf213.zip | |
nvme: Fix sync controller reset return
If a controller reset is requested while the device has no namespaces,
we were incorrectly returning ENETRESET. This patch adds the check for
ADMIN_ONLY controller state to indicate a successful reset.
Fixes: 8000d1fdb0 ("nvme-rdma: fix sysfs invoked reset_ctrl error flow ")
Cc: <[email protected]>
Signed-off-by: Charles Machalow <[email protected]>
[changelog]
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
