Message ID | 20201005142109.551212212@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=Taag=DM=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CA7AC46466 for <stable@archiver.kernel.org>; Mon, 5 Oct 2020 15:27:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD4112074F for <stable@archiver.kernel.org>; Mon, 5 Oct 2020 15:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601911635; bh=b5En8k/O97exEZDQzUfNz3XNs7S2smboU+rFFPz3PpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=KkDFzWS53zQ/+ni+iUSP6/QpSUVdiZgs+o0BC0lCTm29/t5fpIAefIR+GvpxlLpPd rJhj3RuS8/wi9xH+ZRlfaHGw2CKo8uRDp6u3X+QTmyohBOQ6B11XRfK5FJGeN1geFE p2XcjBI1zZkwRhPYqCsyqDabZsbj8PArpRuOj+J4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727193AbgJEP1O (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 5 Oct 2020 11:27:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:51644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbgJEP1N (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 5 Oct 2020 11:27:13 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DB54D2085B; Mon, 5 Oct 2020 15:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601911631; bh=b5En8k/O97exEZDQzUfNz3XNs7S2smboU+rFFPz3PpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SKbu3B9/L+eY7TrPDqNR7KpN6JBVrky1AU1+jjxL0odMi9N/jiociZHJdcaYDFw7Q SRjfZjLen7JYaFG7x4AKtp/+P84OpTKY+8CEIyJRoxqHKZoNLjFasNx3Gj+/bEyjx6 zquGagM/b71eFeUrkO6/ZptrovuoAxcnts013DGY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Martin Schiller <ms@dev.tdt.de>, Xie He <xie.he.0141@gmail.com>, "David S. Miller" <davem@davemloft.net>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 18/38] drivers/net/wan/lapbether: Make skb->protocol consistent with the header Date: Mon, 5 Oct 2020 17:26:35 +0200 Message-Id: <20201005142109.551212212@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005142108.650363140@linuxfoundation.org> References: <20201005142108.650363140@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index 15177a54b17d7..e5fc1b95cea6a 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -201,8 +201,6 @@ static void lapbeth_data_transmit(struct net_device *ndev, struct sk_buff *skb) struct net_device *dev; int size = skb->len; - skb->protocol = htons(ETH_P_X25); - ptr = skb_push(skb, 2); *ptr++ = size % 256; @@ -213,6 +211,8 @@ static void lapbeth_data_transmit(struct net_device *ndev, struct sk_buff *skb) skb->dev = dev = lapbeth->ethdev; + skb->protocol = htons(ETH_P_DEC); + skb_reset_network_header(skb); dev_hard_header(skb, dev, ETH_P_DEC, bcast_addr, NULL, 0);