Use napi_build_skb for small payload SKBs that end up using the tun_build_skb path. Signed-off-by: Jon Kohler <jon@xxxxxxxxxxx> --- drivers/net/tun.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index f7f7490e78dc..7b13d4bf5374 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1538,7 +1538,11 @@ static struct sk_buff *__tun_build_skb(struct tun_file *tfile, int buflen, int len, int pad, int metasize) { - struct sk_buff *skb = build_skb(buf, buflen); + struct sk_buff *skb; + + local_bh_disable(); + skb = napi_build_skb(buf, buflen); + local_bh_enable(); if (!skb) return ERR_PTR(-ENOMEM); -- 2.43.0