diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-08-09 12:56:37 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2011-11-04 15:53:04 -0400 |
commit | 6413214c5d424fd5aae6567848340f962ad2ce0f (patch) | |
tree | f5a4053813b9e01146288cc11cd199303ce14b05 /drivers/block/nvme.c | |
parent | 6bbf1acddeed0bfb345a5578f9fcada16f1e514f (diff) | |
download | linux-6413214c5d424fd5aae6567848340f962ad2ce0f.tar.gz linux-6413214c5d424fd5aae6567848340f962ad2ce0f.tar.bz2 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; } |