diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-08-09 18:56:37 +0200 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 20:53:04 +0100 |
commit | 6413214c5d424fd5aae6567848340f962ad2ce0f (patch) | |
tree | f5a4053813b9e01146288cc11cd199303ce14b05 /drivers/block/nvme.c | |
parent | NVMe: Rework ioctls (diff) | |
download | linux-6413214c5d424fd5aae6567848340f962ad2ce0f.tar.xz linux-6413214c5d424fd5aae6567848340f962ad2ce0f.zip |
Fix bug in NVME_IOCTL_SUBMIT_IO
Missing 'break' in the switch statement meant that we'd fall through
to the 'return -EINVAL' case.
Diffstat (limited to 'drivers/block/nvme.c')
-rw-r--r-- | drivers/block/nvme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 9e3c724b95c3..0956e1241520 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c @@ -1054,6 +1054,7 @@ static int nvme_submit_io(struct nvme_ns *ns, struct nvme_user_io __user *uio) case nvme_cmd_compare: nents = nvme_map_user_pages(dev, io.opcode & 1, io.addr, length, &sg); + break; default: return -EINVAL; } |