From: Keith Busch Date: Thu, 7 Apr 2016 16:13:25 +0000 (-0600) Subject: Use nsid parameter for security commands X-Git-Tag: v0.6~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cd9adc29f9578cefb0838b4085821a930f603b47;p=users%2Fsagi%2Fnvme-cli.git Use nsid parameter for security commands Controllers optionally may use nsid. Signed-off-by: Keith Busch --- diff --git a/nvme-ioctl.c b/nvme-ioctl.c index 61c9375c..89ea2b97 100644 --- a/nvme-ioctl.c +++ b/nvme-ioctl.c @@ -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,