diff options
Diffstat (limited to 'drivers/target/loopback')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 2d0f22a91f67..2f19e1926493 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -118,7 +118,7 @@ static struct se_cmd *tcm_loop_allocate_core_cmd( | |||
118 | * Signal BIDI usage with T_TASK(cmd)->t_tasks_bidi | 118 | * Signal BIDI usage with T_TASK(cmd)->t_tasks_bidi |
119 | */ | 119 | */ |
120 | if (scsi_bidi_cmnd(sc)) | 120 | if (scsi_bidi_cmnd(sc)) |
121 | T_TASK(se_cmd)->t_tasks_bidi = 1; | 121 | se_cmd->t_task->t_tasks_bidi = 1; |
122 | /* | 122 | /* |
123 | * Locate the struct se_lun pointer and attach it to struct se_cmd | 123 | * Locate the struct se_lun pointer and attach it to struct se_cmd |
124 | */ | 124 | */ |
@@ -176,7 +176,7 @@ static int tcm_loop_new_cmd_map(struct se_cmd *se_cmd) | |||
176 | * For BIDI commands, pass in the extra READ buffer | 176 | * For BIDI commands, pass in the extra READ buffer |
177 | * to transport_generic_map_mem_to_cmd() below.. | 177 | * to transport_generic_map_mem_to_cmd() below.. |
178 | */ | 178 | */ |
179 | if (T_TASK(se_cmd)->t_tasks_bidi) { | 179 | if (se_cmd->t_task->t_tasks_bidi) { |
180 | struct scsi_data_buffer *sdb = scsi_in(sc); | 180 | struct scsi_data_buffer *sdb = scsi_in(sc); |
181 | 181 | ||
182 | mem_bidi_ptr = (void *)sdb->table.sgl; | 182 | mem_bidi_ptr = (void *)sdb->table.sgl; |
@@ -1402,9 +1402,9 @@ static int tcm_loop_register_configfs(void) | |||
1402 | * Register the top level struct config_item_type with TCM core | 1402 | * Register the top level struct config_item_type with TCM core |
1403 | */ | 1403 | */ |
1404 | fabric = target_fabric_configfs_init(THIS_MODULE, "loopback"); | 1404 | fabric = target_fabric_configfs_init(THIS_MODULE, "loopback"); |
1405 | if (!fabric) { | 1405 | if (IS_ERR(fabric)) { |
1406 | printk(KERN_ERR "tcm_loop_register_configfs() failed!\n"); | 1406 | printk(KERN_ERR "tcm_loop_register_configfs() failed!\n"); |
1407 | return -1; | 1407 | return PTR_ERR(fabric); |
1408 | } | 1408 | } |
1409 | /* | 1409 | /* |
1410 | * Setup the fabric API of function pointers used by target_core_mod | 1410 | * Setup the fabric API of function pointers used by target_core_mod |