diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-09-17 05:23:53 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-09-25 08:17:27 +0200 |
commit | 8fa3a867486f85df66eba8c4df85804d3309c6ad (patch) | |
tree | 9008062c9e3567b5cf5d3b589bf7e57259da7692 /arch/arm/common/locomo.c | |
parent | target: Fix target_sense_desc_format NULL pointer dereference (diff) | |
download | linux-8fa3a867486f85df66eba8c4df85804d3309c6ad.tar.xz linux-8fa3a867486f85df66eba8c4df85804d3309c6ad.zip |
target: Make TCM_WRITE_PROTECT failure honor D_SENSE bit
This patch changes transport_lookup_cmd_lun() to obtain
se_lun->lun_ref + se_cmd->se_device rcu_dereference during
TCM_WRITE_PROTECT -> CHECK_CONDITION failure status.
Do this to ensure the active control D_SENSE mode page bit
is being honored.
Reported-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'arch/arm/common/locomo.c')
0 files changed, 0 insertions, 0 deletions