projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bbf1ac
)
Fix bug in NVME_IOCTL_SUBMIT_IO
author
Matthew Wilcox
<matthew.r.wilcox@intel.com>
Tue, 9 Aug 2011 16:56:37 +0000
(12:56 -0400)
committer
Matthew Wilcox
<matthew.r.wilcox@intel.com>
Fri, 4 Nov 2011 19:53:04 +0000
(15:53 -0400)
Missing 'break' in the switch statement meant that we'd fall through
to the 'return -EINVAL' case.
drivers/block/nvme.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/nvme.c
b/drivers/block/nvme.c
index 9e3c724b95c30833921b6ba015826c25ddaa27f1..0956e124152047ef9ef5cc6c66137a730722444f 100644
(file)
--- 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;
}