Files
linux-stable-mirror/drivers/net/ovpn
Antonio Quartulli 40d48527a5 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 <antonio@openvpn.net>
2025-05-15 13:09:36 +02:00
..
2025-04-17 12:30:02 +02:00
2025-04-17 12:30:02 +02:00
2025-04-17 12:30:03 +02:00
2025-04-17 12:30:03 +02:00
2025-04-17 12:30:03 +02:00
2025-04-17 12:30:02 +02:00
2025-04-17 12:30:02 +02:00
2025-04-17 12:30:02 +02:00
2025-04-17 12:30:03 +02:00
2025-04-17 12:30:03 +02:00
2025-04-17 12:30:02 +02:00