Linux block layer
 help / color / mirror / Atom feed
* [PATCH V6 1/3] uapi: sed-opal fix IOW for activate lsp to use correct struct
@ 2017-02-15  0:29 Scott Bauer
  2017-02-15  0:29 ` [PATCH V6 2/3] Move stack parameters for sed_ioctl to prevent oversized stack with CONFIG_KASAN Scott Bauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Scott Bauer @ 2017-02-15  0:29 UTC (permalink / raw)
  To: linux-nvme
  Cc: David.Laight, arnd, axboe, keith.busch, jonathan.derrick, hch,
	linux-kernel, linux-block, Scott Bauer

The IOC_OPAL_ACTIVATE_LSP took the wrong strcure which would
give us the wrong size when using _IOC_SIZE, switch it to the
right structure.

Fixes: 058f8a2 ("Include: Uapi: Add user ABI for Sed/Opal")

Signed-off-by: Scott Bauer <scott.bauer@intel.com>
---
 include/uapi/linux/sed-opal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/sed-opal.h b/include/uapi/linux/sed-opal.h
index fc06e3a..c72e073 100644
--- a/include/uapi/linux/sed-opal.h
+++ b/include/uapi/linux/sed-opal.h
@@ -106,7 +106,7 @@ struct opal_mbr_data {
 #define IOC_OPAL_SAVE		    _IOW('p', 220, struct opal_lock_unlock)
 #define IOC_OPAL_LOCK_UNLOCK	    _IOW('p', 221, struct opal_lock_unlock)
 #define IOC_OPAL_TAKE_OWNERSHIP	    _IOW('p', 222, struct opal_key)
-#define IOC_OPAL_ACTIVATE_LSP       _IOW('p', 223, struct opal_key)
+#define IOC_OPAL_ACTIVATE_LSP       _IOW('p', 223, struct opal_lr_act)
 #define IOC_OPAL_SET_PW             _IOW('p', 224, struct opal_new_pw)
 #define IOC_OPAL_ACTIVATE_USR       _IOW('p', 225, struct opal_session_info)
 #define IOC_OPAL_REVERT_TPR         _IOW('p', 226, struct opal_key)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-15  2:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-15  0:29 [PATCH V6 1/3] uapi: sed-opal fix IOW for activate lsp to use correct struct Scott Bauer
2017-02-15  0:29 ` [PATCH V6 2/3] Move stack parameters for sed_ioctl to prevent oversized stack with CONFIG_KASAN Scott Bauer
2017-02-15  0:29 ` [PATCH V6 3/3] Maintainers: Modify SED list from nvme to block Scott Bauer
2017-02-15  2:47 ` [PATCH V6 1/3] uapi: sed-opal fix IOW for activate lsp to use correct struct Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox