]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Use nsid parameter for security commands
authorKeith Busch <keith.busch@intel.com>
Thu, 7 Apr 2016 16:13:25 +0000 (10:13 -0600)
committerKeith Busch <keith.busch@intel.com>
Thu, 7 Apr 2016 16:14:57 +0000 (10:14 -0600)
Controllers optionally may use nsid.

Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme-ioctl.c

index 61c9375cd667a0e496c30e91be36acb8ca66bd8f..89ea2b97af801efd45e718fde14fc7ee151b69b6 100644 (file)
@@ -562,6 +562,7 @@ int nvme_sec_recv(int fd, __u32 nsid, __u8 nssf, __u16 spsp,
 {
        struct nvme_admin_cmd cmd = {
                .opcode         = nvme_admin_security_recv,
+               .nsid           = nsid,
                .cdw10          = secp << 24 | spsp << 8 | nssf,
                .cdw11          = al,
                .addr           = (__u64)(uintptr_t) data,