Skip to content
Commit 60573b87 authored by Jens Axboe's avatar Jens Axboe
Browse files

[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: default avatarJens Axboe <jens.axboe@oracle.com>
parent bdb02504
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment