mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 b0a382c5.
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]>
This commit is contained in:
parent
096b499517
commit
1f0b030c45
1 changed files with 1 additions and 1 deletions
|
|
@ -2363,7 +2363,7 @@ static ssize_t target_core_alua_tg_pt_gp_store_attr_alua_support_##_name(\
|
|||
pr_err("Invalid value '%ld', must be '0' or '1'\n", tmp); \
|
||||
return -EINVAL; \
|
||||
} \
|
||||
if (!tmp) \
|
||||
if (tmp) \
|
||||
t->_var |= _bit; \
|
||||
else \
|
||||
t->_var &= ~_bit; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue