Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp215076pxx; Wed, 28 Oct 2020 03:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/O4Lem9CGe/NwKI/p3pAnCf5SjspGVc9fRGxBRoEITxzc7i7FuVl6x29xbEc/4yS2V/Bm X-Received: by 2002:a17:906:31c1:: with SMTP id f1mr7071644ejf.253.1603879450409; Wed, 28 Oct 2020 03:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879450; cv=none; d=google.com; s=arc-20160816; b=JYeJN86J+KmWRvPGrfJClOz+f7pmdxa/xpfnS83RtFTpDZBH+xU9FEsVHN2vaCnFXK HoXJxqo9+G9wcC0OXR8acohqkKKwHj20N13B0R/PbyHDaYQZRdwQ413AsCrdJ8uB+HUx g8XcYv1YDpV1kW8ZMmHnRzq31CfC1oDfxyVwEhrdt3Ug1tQHYVE4FnXGZNjmuxNJXhmi FLEQWYq/Djggz2KYZuetBdpFDxcwSS2n7/fShRLje8LixVDHjib9R6xPakkMK7kgIetV Yc0NYG64oAp80bGtbRtn9lqaF9Ao4YsF1jQCzHXkHp6op/ZlgTWBAc9De/dGDD9ocsEI i2SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=k+BP5LtfOZ8rmUMHi1bs2t8roHJKfoXET5AzNGbFE4M=; b=YBY6PracFQEBR/xQvMsqpgMbtN6NqsgNgpoE3fB3i1qw/3HbgoDIemCCVFVpRDVIUr UHeDLo6TcidBuAg4lj/E1tis58VSeIRSAUtcrC1/TGn/GR3gzFc/h8YWQFTITN6dDmUD E3adxEHofN1I0c/w2NUGZaXrCKz4CkFbmSL5N81uDBTJHd1Ytj3ueog0RkwAJ7BvFW+h Xh1C97Blva/hns0iwA2f5n6UIAD/UQlN1rkKsoWPGDi90kx97RVgGesqDDos8CdYqBtw R01HypzKlOItn5/3+XskDteinvd92J/WXotPg5gfZiq1nx2ItZ2FfKOT5z22v3zY2vkB wFQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C4VkuCXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs17si3022913ejb.543.2020.10.28.03.03.48; Wed, 28 Oct 2020 03:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C4VkuCXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2902287AbgJ0OcC (ORCPT + 99 others); Tue, 27 Oct 2020 10:32:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:56408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2901946AbgJ0O3n (ORCPT ); Tue, 27 Oct 2020 10:29:43 -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 22AF32222C; Tue, 27 Oct 2020 14:29:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603808982; bh=c/9wlfARBEJpTCpm3PS07TAi8NtXw+RfVjcsG7o0TFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C4VkuCXcYHqP4YrRtLdQOThujfeJUstWMA+cBvCqBCqkH2JVeUvXx/6Z+EdNN5Pb2 YYEkcKGvd6R0+jjE4nz7ya1K0EcBpTBZf7bqVRj0y23Y6Vw8QLScMS6MwKX8P+mNie fqhkB8duuYaiZ+sN7ECYsznFWLUPrJW0CWZkkCAc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Marc Kleine-Budde Subject: [PATCH 5.4 015/408] net: j1939: j1939_session_fresh_new(): fix missing initialization of skbcnt Date: Tue, 27 Oct 2020 14:49:13 +0100 Message-Id: <20201027135455.763990155@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Kleine-Budde [ Upstream commit 13ba4c434422837d7c8c163f9c8d854e67bf3c99 ] This patch add the initialization of skbcnt, similar to: e009f95b1543 can: j1935: j1939_tp_tx_dat_new(): fix missing initialization of skbcnt Let's play save and initialize this skbcnt as well. Suggested-by: Jakub Kicinski Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- net/can/j1939/transport.c | 1 + 1 file changed, 1 insertion(+) --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -1488,6 +1488,7 @@ j1939_session *j1939_session_fresh_new(s skb->dev = priv->ndev; can_skb_reserve(skb); can_skb_prv(skb)->ifindex = priv->ndev->ifindex; + can_skb_prv(skb)->skbcnt = 0; skcb = j1939_skb_to_cb(skb); memcpy(skcb, rel_skcb, sizeof(*skcb));