target: fix double unmap data sg in core_scsi3_emulate_pro_register_and_move()
authortangwenji <tang.wenji@zte.com.cn>
Mon, 21 Aug 2017 12:17:18 +0000 (20:17 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 21:45:22 +0000 (14:45 -0700)
Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c

index 9f25c9c6f67da50480bfaf7f577997cab0039c88..dbf572e0667b4b4c5eadfc1ccd538484f0c5ad1a 100644 (file)
@@ -3528,8 +3528,6 @@ after_iport_check:
 
        core_scsi3_update_and_write_aptpl(cmd->se_dev, aptpl);
 
-       transport_kunmap_data_sg(cmd);
-
        core_scsi3_put_pr_reg(dest_pr_reg);
        return 0;
 out: