Fix bug in NVME_IOCTL_SUBMIT_IO
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 9 Aug 2011 16:56:37 +0000 (12:56 -0400)
committerMatthew 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

index 9e3c724b95c30833921b6ba015826c25ddaa27f1..0956e124152047ef9ef5cc6c66137a730722444f 100644 (file)
@@ -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;
        }