Maximum value of offset in scatterlist structure

Harsh Jain at
Mon Sep 18 10:46:00 EDT 2017


Since scatter/gather structure deals with page address. By defination
offset in page should be 0 <= offset< PAGE_SIZE. But in kernel code
when ever we increment sg->offset, we didn't not check for upper limit
 like in function "



Is n't it wrong?

Harsh Jain

More information about the Kernelnewbies mailing list