Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uapi: sed-opal fix IOW for activate lsp to use correct struct

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>
Signed-off-by: Jens Axboe <axboe@fb.com>

authored by

Scott Bauer and committed by
Jens Axboe
24bff4d7 853fe1bf

+1 -1
+1 -1
include/uapi/linux/sed-opal.h
··· 106 106 #define IOC_OPAL_SAVE _IOW('p', 220, struct opal_lock_unlock) 107 107 #define IOC_OPAL_LOCK_UNLOCK _IOW('p', 221, struct opal_lock_unlock) 108 108 #define IOC_OPAL_TAKE_OWNERSHIP _IOW('p', 222, struct opal_key) 109 - #define IOC_OPAL_ACTIVATE_LSP _IOW('p', 223, struct opal_key) 109 + #define IOC_OPAL_ACTIVATE_LSP _IOW('p', 223, struct opal_lr_act) 110 110 #define IOC_OPAL_SET_PW _IOW('p', 224, struct opal_new_pw) 111 111 #define IOC_OPAL_ACTIVATE_USR _IOW('p', 225, struct opal_session_info) 112 112 #define IOC_OPAL_REVERT_TPR _IOW('p', 226, struct opal_key)