[PATCH] target_core_configfs: fix SE_DEV_ALUA_SUPPORT_STATE_STORE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix inverted logic. A value of 1 should enable the support, not disable it.

Signed-off-by: Sebastian Herbszt <herbszt@xxxxxx>

diff -urp a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
--- a/drivers/target/target_core_configfs.c	2014-08-31 23:26:21.000000000 +0200
+++ b/drivers/target/target_core_configfs.c	2014-08-31 23:37:30.214209497 +0200
@@ -2363,7 +2363,7 @@ static ssize_t target_core_alua_tg_pt_gp
 		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;					\
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux