Skip to content

Commit

Permalink
mmc: Fix sg helper copy-and-paste error
Browse files Browse the repository at this point in the history
Commit 45711f1 ("[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>
  • Loading branch information
Roland Dreier authored and Jens Axboe committed Nov 8, 2007
1 parent fffe487 commit 8578007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/card/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8578007

Please sign in to comment.