Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3f23e2d4 authored by Chris Lew's avatar Chris Lew
Browse files

net: qrtr: Attempt to linearize skb for forwarding



The current QRTR transport feature set does not support fragmented skbs
which is a problem for packets that are forwarded from the rx path.

In order to linearize the skb, skb_put_padto() and skb_linearize() try
to allocate enough memory with GFP_ATOMIC but are prone to failure.

Pre-allocate enough headeroom with GFP_KERNEL on forwarded packets. If
there are still problems with allocation, then continue and drop the
packet in qrtr_node_enqueue().

Change-Id: I7de6620bba26746698237d913ce064ea5725f921
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 29ba5ffa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment