Re: scatterwalk_map_and_copy may cause kernel oops

2007-12-07 Thread Herbert Xu
On Thu, Dec 06, 2007 at 12:25:57AM -0600, Joy Latten wrote: > In scatterwalk_map_and_copy(), sg_next(sg) is called, > loop goes back to top and scatterwalk_start() gets called > again. When next sg is NULL, BUG_ON may occur in next call to > scatterwalk_start(). > > Please let me know if followin

scatterwalk_map_and_copy may cause kernel oops

2007-12-05 Thread Joy Latten
In scatterwalk_map_and_copy(), sg_next(sg) is called, loop goes back to top and scatterwalk_start() gets called again. When next sg is NULL, BUG_ON may occur in next call to scatterwalk_start(). Please let me know if following patch takes right approach to fix this. regards, Joy Signed-off-by: