diff options
| author | Antonio Quartulli <[email protected]> | 2025-05-12 23:17:22 +0000 |
|---|---|---|
| committer | Antonio Quartulli <[email protected]> | 2025-05-15 11:09:36 +0000 |
| commit | 40d48527a587b5c2bd4b7ba00974732a93052cae (patch) | |
| tree | e8e6d364655dbaeb61f7699a5392c2842264190a /tools/testing/selftests/drivers/net/lib/py/env.py | |
| parent | ovpn: improve 'no route to host' debug message (diff) | |
| download | kernel-40d48527a587b5c2bd4b7ba00974732a93052cae.tar.gz kernel-40d48527a587b5c2bd4b7ba00974732a93052cae.zip | |
ovpn: fix check for skb_to_sgvec_nomark() return value
Depending on the data offset, skb_to_sgvec_nomark() may use
less scatterlist elements than what was forecasted by the
previous call to skb_cow_data().
It specifically happens when 'skbheadlen(skb) < offset', because
in this case we entirely skip the skb's head, which would have
required its own scatterlist element.
For this reason, it doesn't make sense to check that
skb_to_sgvec_nomark() returns the same value as skb_cow_data(),
but we can rather check for errors only, as it happens in
other parts of the kernel.
Signed-off-by: Antonio Quartulli <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/lib/py/env.py')
0 files changed, 0 insertions, 0 deletions
