diff options
author | Tejun Heo <[email protected]> | 2009-04-15 22:10:23 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2009-04-22 08:35:09 +0200 |
commit | 23c560a99d78bddf5c251bfa97bce19e4da4b3f3 (patch) | |
tree | 5c86aecb937ec49effaaf7cca526baf36c9c3eaf /net/lapb/lapb_iface.c | |
parent | 091069740304c979f957ceacec39c461d0192158 (diff) |
scatterlist: make sure sg_miter_next() doesn't return 0 sized mappings
Impact: fix not-so-critical but annoying bug
sg_miter_next() returns 0 sized mapping if there is an zero sized sg
entry in the list or at the end of each iteration. As the users
always check the ->length field, this bug shouldn't be critical other
than causing unnecessary iteration.
Fix it.
Signed-off-by: Tejun Heo <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions