]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
fix invalid opcode for nvme_resv_release() function
authorYongseok Oh <yongseok.oh@sk.com>
Mon, 29 Aug 2016 08:04:18 +0000 (17:04 +0900)
committerKeith Busch <keith.busch@intel.com>
Mon, 29 Aug 2016 15:05:44 +0000 (09:05 -0600)
nvme-ioctl.c

index c0d659b70ec59a5be2b0462ab3e45265fffbd55d..8698e1d7a375fc92921f6e40b1deb47c39c8b5cd 100644 (file)
@@ -281,7 +281,7 @@ int nvme_resv_release(int fd, __u32 nsid, __u8 rtype, __u8 rrela,
        __u32 cdw10 = rrela | (iekey ? 1 << 3 : 0) | rtype << 8;
 
        struct nvme_passthru_cmd cmd = {
-               .opcode         = nvme_cmd_resv_register,
+               .opcode         = nvme_cmd_resv_release,
                .nsid           = nsid,
                .cdw10          = cdw10,
                .addr           = (__u64)(uintptr_t) (payload),