From: Nicholas Bellinger Date: Wed, 9 Feb 2011 23:35:04 +0000 (-0800) Subject: [SCSI] target: Fix SCF_SCSI_CONTROL_SG_IO_CDB breakage X-Git-Tag: v2.6.38-rc6~32^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63af95888894af6ca4112dc90083d1dff0fec29;p=pandora-kernel.git [SCSI] target: Fix SCF_SCSI_CONTROL_SG_IO_CDB breakage This patch fixes a bug introduced during the v4 control CDB emulation refactoring that broke SCF_SCSI_CONTROL_SG_IO_CDB operation within transport_map_control_cmd_to_task(). It moves the BUG_ON() into transport_do_se_mem_map() after the TRANSPORT(dev)->do_se_mem_map() RAMDISK_DR special case, and adds the proper struct se_mem assignment when !list_empty() for normal non RAMDISK_DR backend device cases. Reported-by: Kai-Thorsten Hambrecht Signed-off-by: Nicholas A. Bellinger Signed-off-by: James Bottomley --- Reading git-diff-tree failed