Skip to content
Commit db2c2417 authored by Changli Gao's avatar Changli Gao Committed by David S. Miller
Browse files

act_pedit: access skb->data safely



access skb->data safely

we should use skb_header_pointer() and skb_store_bits() to access skb->data to
handle small or non-linear skbs.

Signed-off-by: default avatarChangli Gao <xiaosuo@gmail.com>
----
 net/sched/act_pedit.c |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3df95ce9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment