Skip to content

Commit

Permalink
Fix bug in NVME_IOCTL_SUBMIT_IO
Browse files Browse the repository at this point in the history
Missing 'break' in the switch statement meant that we'd fall through
to the 'return -EINVAL' case.
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent 6bbf1ac commit 6413214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6413214

Please sign in to comment.