Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=60573b874b03d22678614ca1e73f6b15c1b53b40 Commit: 60573b874b03d22678614ca1e73f6b15c1b53b40 Parent: bdb02504f473be6a785741093913ea2acd05626f Author: Jens Axboe <[EMAIL PROTECTED]> AuthorDate: Wed Oct 17 13:02:33 2007 +0200 Committer: Jens Axboe <[EMAIL PROTECTED]> CommitDate: Wed Oct 17 13:02:33 2007 +0200
[BLOCK] Clear sg entry before filling in blk_rq_map_sg() The memset() of the sg entry was originally removed, because it could overwrite a chain pointer. But it's quite OK to memset() it when we know it's a valid entry, since it can't contain a chain pointer. Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> --- block/ll_rw_blk.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 9eabac9..1014d34 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c @@ -1352,6 +1352,7 @@ new_segment: sg = next_sg; next_sg = sg_next(sg); + memset(sg, 0, sizeof(*sg)); sg->page = bvec->bv_page; sg->length = nbytes; sg->offset = bvec->bv_offset; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html