]> Pileus Git - ~andy/linux/blobdiff - drivers/target/loopback/tcm_loop.c
target: Add protection SGLs to target_submit_cmd_map_sgls
[~andy/linux] / drivers / target / loopback / tcm_loop.c
index 763ee450f71bdbeb1e79d4d80eeaf03f3a5ff54d..112b795a7b8057a3b3c8037316d0a8247e32933c 100644 (file)
@@ -217,7 +217,7 @@ static void tcm_loop_submission_work(struct work_struct *work)
                        scsi_bufflen(sc), tcm_loop_sam_attr(sc),
                        sc->sc_data_direction, 0,
                        scsi_sglist(sc), scsi_sg_count(sc),
-                       sgl_bidi, sgl_bidi_count);
+                       sgl_bidi, sgl_bidi_count, NULL, 0);
        if (rc < 0) {
                set_host_byte(sc, DID_NO_CONNECT);
                goto out_done;