aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-11-15 22:13:24 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2011-12-06 06:00:53 +0000
commitfef58a6096770ed6ab49103a430cc755254a74d9 (patch)
treee59f7c7074c32e604a9b1a9f15550c0249e12546 /drivers/i2c/algos/i2c-algo-bit.c
parenttarget: remove the unused t_task_pt_sgl and t_task_pt_sgl_num se_cmd fields (diff)
downloadwireguard-linux-fef58a6096770ed6ab49103a430cc755254a74d9.tar.xz
wireguard-linux-fef58a6096770ed6ab49103a430cc755254a74d9.zip
target: Reject SCSI data overflow for fabrics using transport_generic_map_mem_to_cmd
This patch changes transport_generic_map_mem_to_cmd() to reject SCSI data overflow and to send exception status with CHECK_CONDITION + TCM_INVALID_CDB_FIELD for fabrics that are passing a pre-populated struct scatterlist (eg: tcm_loop and iscsi-target) being mapped into se_cmd->t_data_sg and se_cmd->t_data_nents. This addresses an OOPs where transport_allocate_data_tasks() would walk the incorrect post OVERFLOW cmd->data_length value beyond the end of the passed scatterlist. Cc: Christoph Hellwig <hch@lst.de> Cc: Andy Grover <agrover@redhat.com> Cc: stable@kernel.org Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions