diff options
| author | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
|---|---|---|
| committer | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
| commit | 79828b4fa835f73cdaf4bffa48696abdcbea9d02 (patch) | |
| tree | 5e0fa7156acb75ba603022bc807df8f2fedb97a8 /drivers/target/target_core_xcopy.c | |
| parent | 721b51fcf91898299d96f4b72cb9434cda29dce6 (diff) | |
| parent | 8c1a9d6323abf0fb1e5dad96cf3f1c783505ea5a (diff) | |
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-fix-rt5645
Diffstat (limited to 'drivers/target/target_core_xcopy.c')
| -rw-r--r-- | drivers/target/target_core_xcopy.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 4515f52546f8..47fe94ee10b8 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c @@ -450,6 +450,8 @@ int target_xcopy_setup_pt(void)  	memset(&xcopy_pt_sess, 0, sizeof(struct se_session));  	INIT_LIST_HEAD(&xcopy_pt_sess.sess_list);  	INIT_LIST_HEAD(&xcopy_pt_sess.sess_acl_list); +	INIT_LIST_HEAD(&xcopy_pt_sess.sess_cmd_list); +	spin_lock_init(&xcopy_pt_sess.sess_cmd_lock);  	xcopy_pt_nacl.se_tpg = &xcopy_pt_tpg;  	xcopy_pt_nacl.nacl_sess = &xcopy_pt_sess; @@ -644,7 +646,7 @@ static int target_xcopy_read_source(  	pr_debug("XCOPY: Built READ_16: LBA: %llu Sectors: %u Length: %u\n",  		(unsigned long long)src_lba, src_sectors, length); -	transport_init_se_cmd(se_cmd, &xcopy_pt_tfo, NULL, length, +	transport_init_se_cmd(se_cmd, &xcopy_pt_tfo, &xcopy_pt_sess, length,  			      DMA_FROM_DEVICE, 0, &xpt_cmd->sense_buffer[0]);  	xop->src_pt_cmd = xpt_cmd; @@ -704,7 +706,7 @@ static int target_xcopy_write_destination(  	pr_debug("XCOPY: Built WRITE_16: LBA: %llu Sectors: %u Length: %u\n",  		(unsigned long long)dst_lba, dst_sectors, length); -	transport_init_se_cmd(se_cmd, &xcopy_pt_tfo, NULL, length, +	transport_init_se_cmd(se_cmd, &xcopy_pt_tfo, &xcopy_pt_sess, length,  			      DMA_TO_DEVICE, 0, &xpt_cmd->sense_buffer[0]);  	xop->dst_pt_cmd = xpt_cmd;  |