Browse Source

Fix bug in NVME_IOCTL_SUBMIT_IO

Missing 'break' in the switch statement meant that we'd fall through
to the 'return -EINVAL' case.
Matthew Wilcox 14 years ago
parent
commit
6413214c5d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/block/nvme.c

+ 1 - 0
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;
 	}