Re: [PATCH] scatterlist: add more safeguards

2007-11-26 Thread Jens Axboe
On Mon, Nov 26 2007, Tejun Heo wrote: > 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-b

[PATCH] scatterlist: add more safeguards

2007-11-26 Thread Tejun Heo
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 <[EMAIL PROTECTED]> --- While converting li