From: Sebastian Herbszt Date: Sun, 31 Aug 2014 22:17:53 +0000 (+0200) Subject: target: Fix inverted logic in SE_DEV_ALUA_SUPPORT_STATE_STORE X-Git-Tag: v3.17-rc6~5^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1f0b030c45c781f9fe568e5e2a813d6c8567a051;p=karo-tx-linux.git 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 Cc: # v3.14+ Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index bf55c5a04cfa..756def38c77a 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c @@ -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; \