aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorNicholas Bellinger <[email protected]>2015-02-13 22:49:38 +0000
committerNicholas Bellinger <[email protected]>2015-02-14 02:09:44 +0000
commitf7b7c06f386c5e990acb87a8bc96137b9f978977 (patch)
tree60a15481f0e470257ec72de21a8dd53b81427b93 /net/lapb/lapb_iface.c
parentaa179935edea9a64dec4b757090c8106a3907ffa (diff)
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 <[email protected]> Cc: Sagi Grimberg <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions