Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286318
b: refs/heads/master
c: 4974218
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox committed Jan 10, 2012
1 parent c0438a7 commit 30e3e3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff976d724a74e4522e9ca2de1fb37ac4520f454f
refs/heads/master: 497421880acecd0281d3182d534f3d28c927caec
6 changes: 4 additions & 2 deletions trunk/drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,8 @@ static int nvme_user_admin_cmd(struct nvme_ns *ns,

length = cmd.data_len;
if (cmd.data_len) {
iod = nvme_map_user_pages(dev, 1, cmd.addr, length);
iod = nvme_map_user_pages(dev, cmd.opcode & 1, cmd.addr,
length);
if (IS_ERR(iod))
return PTR_ERR(iod);
length = nvme_setup_prps(dev, &c.common, iod, length,
Expand All @@ -1178,7 +1179,8 @@ static int nvme_user_admin_cmd(struct nvme_ns *ns,
status = nvme_submit_admin_cmd(dev, &c, NULL);

if (cmd.data_len) {
nvme_unmap_user_pages(dev, 0, cmd.addr, cmd.data_len, iod);
nvme_unmap_user_pages(dev, cmd.opcode & 1, cmd.addr,
cmd.data_len, iod);
nvme_free_iod(dev, iod);
}
return status;
Expand Down

0 comments on commit 30e3e3d

Please sign in to comment.