From: Andy Grover Date: Tue, 15 Apr 2014 21:13:12 +0000 (-0700) Subject: target: Allow non-supporting backends to set pi_prot_type to 0 X-Git-Tag: omap-for-v3.16/fixes-against-rc1~172^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=448ba904160f9d8f69217c28a1692cee5afbff88;p=pandora-kernel.git target: Allow non-supporting backends to set pi_prot_type to 0 Userspace tools assume if a value is read from configfs, it is valid and will not cause an error if the same value is written back. The only valid value for pi_prot_type for backends not supporting DIF is 0, so allow this particular value to be set without returning an error. Reported-by: Krzysztof Chojnowski Signed-off-by: Andy Grover Reviewed-by: Sagi Grimberg Cc: stable@vger.kernel.org # 3.14+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed