commit | 645a8d94629fd812a220d54876339a1ddafd9bc2 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Tue Nov 27 09:30:39 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Nov 27 09:30:39 2007 +0100 |
tree | ea333b0ae1dd478e8a902a3bab780a1c6d673304 | |
parent | 7c9f29b128aab5ac95af553e8d8e0e372647f1d5 [diff] |
scatterlist: add more safeguards Add more safeguards to protect against misinterpreting a chain entry as a normal scatterlist and vice-versa. * Make sure the entry isn't a chain when assigning and reading a normal sg. * Clear offset and length when chaining. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>