]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mmc: Fix sg helper copy-and-paste error
authorRoland Dreier <roland@digitalvampire.org>
Thu, 8 Nov 2007 12:50:58 +0000 (13:50 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 8 Nov 2007 12:50:58 +0000 (13:50 +0100)
Commit 45711f1a ("[SG] Update drivers to use sg helpers") had the
following bogus change in drivers/mmc/card/queue.c:

    > - src_buf = page_address(src->page) + src->offset;
    > + src_buf = sg_virt(dst);

(Notice that "src" is converted to "dst").  Turn this "dst" back into
the intended "src".

Signed-off-by: Roland Dreier <roland@digitalvampire.org>
Tested-by: Romano Giannetti <romano.giannetti@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/mmc/card/queue.c

index 9203a0b221b3364b47531f0af4e963e23e17a49d..1b9c9b6da5b7349b39148129c7a6ce4a709e7717 100644 (file)
@@ -310,7 +310,7 @@ static void copy_sg(struct scatterlist *dst, unsigned int dst_len,
                }
 
                if (src_size == 0) {
-                       src_buf = sg_virt(dst);
+                       src_buf = sg_virt(src);
                        src_size = src->length;
                }