From: Nicholas Bellinger Date: Fri, 13 Feb 2015 22:49:38 +0000 (+0000) Subject: target: Fail I/O with PROTECT bit when protection is unsupported X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~13^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7b7c06f386c5e990acb87a8bc96137b9f978977;p=pandora-kernel.git target: Fail I/O with PROTECT bit when protection is unsupported This patch adds an explicit check for WRPROTECT + RDPROTECT bit usage within sbc_check_prot(), and fails with TCM_INVALID_CDB_FIELD if the backend device does not have protection enabled. Also, update sbc_check_prot() to return sense_reason_t in order to propigate up the correct sense ASQ. Cc: Martin Petersen Cc: Sagi Grimberg Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed