]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/scsi_lib.c
[SG] Get rid of __sg_mark_end()
[linux-2.6-omap-h63xx.git] / drivers / scsi / scsi_lib.c
index 61fdaf02f2511fb09aa6008ab5d78b354d39554b..88de771d3569ff7b58fff72a2926d2eaf28b0510 100644 (file)
@@ -785,7 +785,7 @@ struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *cmd, gfp_t gfp_mask)
                 * end-of-list
                 */
                if (!left)
-                       sg_mark_end(sgl, this);
+                       sg_mark_end(&sgl[this - 1]);
 
                /*
                 * don't allow subsequent mempool allocs to sleep, it would