Skip to content

Commit 1f0b030

Browse files
Sebastian HerbsztNicholas Bellinger
authored andcommitted
target: Fix inverted logic in SE_DEV_ALUA_SUPPORT_STATE_STORE
Fix inverted logic in SE_DEV_ALUA_SUPPORT_STATE_STORE for setting the supported ALUA access states via configfs, originally introduced in commit b0a382c. A value of 1 should enable the support, not disable it. Signed-off-by: Sebastian Herbszt <[email protected]> Cc: <[email protected]> # v3.14+ Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 096b499 commit 1f0b030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/target_core_configfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2363,7 +2363,7 @@ static ssize_t target_core_alua_tg_pt_gp_store_attr_alua_support_##_name(\
23632363
pr_err("Invalid value '%ld', must be '0' or '1'\n", tmp); \
23642364
return -EINVAL; \
23652365
} \
2366-
if (!tmp) \
2366+
if (tmp) \
23672367
t->_var |= _bit; \
23682368
else \
23692369
t->_var &= ~_bit; \

0 commit comments

Comments
 (0)