On Tue, Apr 25, 2017 at 01:08:49PM +0530, Rajnikant Bhojani wrote: > during iterating over a scatterlist table also need to check for NULL > along with number of scatterlist
Not sure this is a good idea. Callers expect to iterate over the full number in general. Exiting early just papers over the bug instead of fixing it. A WARN_ON for this case might be a better idea.