projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bluetooth: MGMT: Fix marking SCAN_RSP as not connectable
[platform/kernel/linux-starfive.git]
/
net
/
ipv4
/
esp4_offload.c
diff --git
a/net/ipv4/esp4_offload.c
b/net/ipv4/esp4_offload.c
index
3969fa8
..
ee848be
100644
(file)
--- a/
net/ipv4/esp4_offload.c
+++ b/
net/ipv4/esp4_offload.c
@@
-340,6
+340,9
@@
static int esp_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_
secpath_reset(skb);
+ if (skb_needs_linearize(skb, skb->dev->features) &&
+ __skb_linearize(skb))
+ return -ENOMEM;
return 0;
}