Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3319566imu; Mon, 7 Jan 2019 00:53:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN5pM7UR+S4NNjo3LeGwYX5S6e39Ocwl2WGnLHb/uUQJ9Nds04eqREJ85injb7giYifG6Jfs X-Received: by 2002:a17:902:8346:: with SMTP id z6mr60265325pln.340.1546851197352; Mon, 07 Jan 2019 00:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546851197; cv=none; d=google.com; s=arc-20160816; b=wr+/PmvTCVgbQ8p7cjPGi0ILpb56kX13iemXtfAtrukqz30dB16XwQHxq/HKbqs5kN cQwaQW8XQj4LGOLVm1q+5ghfCp7+pM3yU217P0N7wss2nZgUwgR0LY0ZAgEg/uLoV/bV Jia1hFqoMmW8StBH9tqstOz8hyrFCQeurXytYn4TOOHCD+1owMZAy3cSDf+bYp9j+XcQ FhwxGg0739rfpaqeukmbnlt5ypdG6oP9If7mFygOOxKGn+pNZdN3ZTHQ8kHU9rlq5VaQ 9aU6E9IuTBt8pcPXMfUDG8emzrI02talAHyxgscq/QSl18AiNQg+EVNaPv9IWXLEId/9 bhBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:user-agent:date :message-id:from:references:cc:to:subject; bh=hCJbZkY14r1Z/JbjrAQ7zOBcKLJ+9898qLfKy5sTNlw=; b=i/7Wg43itW6U6hzUjKDYosMdlA9/iSqrO0YNPh2L233xlIg6KC2OyBR24IRjQ4xSnq cxU5bSz0C0KFjx3A2oIL9P+sYYfR7BVINyhDhRhe/jmpwuLAhHXUndtfyVCTlTXArEOJ uXujzkU119jSsOb0Q2B5FZt2PVTzwJ1e5DPFGmj8aT9FQACkUN6rPnzt1hzX/kVrr3z6 vQ82CrdezC+DrVtlhNBmjTIfdae5qYUG3IonrUWN7CeqvfXX7kUQrBwj5S4wctDa7+Gf rOG4g9j/O4VKLDIMletz6r/Vwo3ZloFuPYMaUHjNn2hIc4gRQBoKFC7RvWtCuUohyukX uZPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si2535576pgi.146.2019.01.07.00.53.01; Mon, 07 Jan 2019 00:53:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726649AbfAGIvG (ORCPT + 99 others); Mon, 7 Jan 2019 03:51:06 -0500 Received: from mx-ginzinger.sigmacloud.services ([185.154.235.147]:38812 "EHLO mx-ginzinger.sigmacloud.services" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbfAGIvG (ORCPT ); Mon, 7 Jan 2019 03:51:06 -0500 Received: from [31.193.165.228] (port=35348 helo=mx-ginzinger.sigmacloud.services) by mx-ginzinger.sigmacloud.services with esmtps (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1ggQcd-0004AV-21; Mon, 07 Jan 2019 09:50:59 +0100 Received: from [10.10.1.106] (10.10.1.106) by exc1.buero.ginzinger.com (10.1.1.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Mon, 7 Jan 2019 09:50:59 +0100 X-CTCH-RefID: str=0001.0A0B0202.5C3312F3.0077:SCFSTAT16437741,ss=1,re=-4.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Subject: Re: [PATCH] Revert "can: dev: __can_get_echo_skb(): print error message, if trying to echo non existing skb" To: Marc Kleine-Budde , Wolfgang Grandegger , "David S. Miller" CC: , , References: <976e38b6-072e-a88b-b51d-e85a37fc71ea@pengutronix.de> From: Manfred Schlaegl Message-ID: <73bd9bcf-f78c-97c0-0c36-105dc0fa16c6@ginzinger.com> Date: Mon, 7 Jan 2019 09:50:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 In-Reply-To: <976e38b6-072e-a88b-b51d-e85a37fc71ea@pengutronix.de> X-Originating-IP: [10.10.1.106] X-ClientProxiedBy: exc1.buero.ginzinger.com (10.1.1.204) To exc1.buero.ginzinger.com (10.1.1.204) X-EXCLAIMER-MD-CONFIG: 9dd172f7-de2e-4231-b886-ec11f46e03b3 X-EXCLAIMER-MD-BIFURCATION-INSTANCE: 0 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha-256"; boundary="----B2AAC6C5620D57ED7095C916097B03E9" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an S/MIME signed message ------B2AAC6C5620D57ED7095C916097B03E9 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: de-AT Content-Transfer-Encoding: quoted-printable =EF=BB=BF Manfred=C2=A0Schlaegl=C2=A0|=C2=A0Leitung Entwicklung Linz=C2=A0 GINZINGER ELECTRONIC SYSTEMS GMBH Tel.: +43 7723 5422 153 Mobil: +43 676 841 208 253 Mail: manfred.schlaegl@ginzinger.com Web: www.ginzinger.com On 04.01.19 16:23, Marc Kleine-Budde wrote: > On 12/19/18 7:39 PM, Manfred Schlaegl wrote: >> This reverts commit 7da11ba5c5066dadc2e96835a6233d56d7b7764a. >> >> After introduction of this change we encountered following new error >> message on various i.MX plattforms (flexcan) >> flexcan 53fc8000.can can0: __can_get_echo_skb: BUG! Trying to echo non >> existing skb: can_priv::echo_skb[0] >=20 > Doh! I should have tested more extensive. Sorry. >=20 >> The introduction of the message was a mistake because >> priv->echo_skb[idx] =3D NULL is a perfectly valid in following case: >> If CAN_RAW_LOOPBACK is disabled (setsockopt) in applications, the >> pkt_type of the tx skb's given to can_put_echo_skb is set to >> PACKET_LOOPBACK. In this case can_put_echo_skb will not set >> priv->echo_skb[idx]. It is therefore kept NULL. >> >> (As additional argument for revert: The order of check and usage of idx >> was changed. idx is used to access an array element before checking it's >> boundaries) >> >> Signed-off-by: Manfred Schlaegl >=20 > Applied to linux-can. Great, thanks! >=20 > Tnx, > Marc >=20 ________________________________________ Ginzinger electronic systems GmbH Gewerbegebiet Pirath 16 4952 Weng im Innkreis www.ginzinger.com Firmenbuchnummer: FN 364958d Firmenbuchgericht: Ried im Innkreis UID-Nr.: ATU66521089 Diese Nachricht ist vertraulich und darf nicht an andere Personen weitergeg= eben oder von diesen verwendet werden. Verst=C3=A4ndigen Sie uns, wenn Sie = irrt=C3=BCmlich eine Mitteilung empfangen haben. This message is confidential. It may not be disclosed to, or used by, anyon= e other than the addressee. If you receive this message by mistake, please = advise the sender. ------B2AAC6C5620D57ED7095C916097B03E9 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIIOGgYJKoZIhvcNAQcCoIIOCzCCDgcCAQExDzANBglghkgBZQMEAgEFADALBgkq hkiG9w0BBwGgggsfMIIF5jCCA86gAwIBAgIQapvhODv/K2ufAdXZuKdSVjANBgkq hkiG9w0BAQwFADCBhTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFu Y2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExp bWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3Jp dHkwHhcNMTMwMTEwMDAwMDAwWhcN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