Message ID | 20200303174353.436641100@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=aLjH=4U=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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 B9B6EC3F2C6 for <stable@archiver.kernel.org>; Tue, 3 Mar 2020 18:03:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9676C20870 for <stable@archiver.kernel.org>; Tue, 3 Mar 2020 18:03:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583258609; bh=5XFHckxjy6Hnk7i+dseR4uft0gsRbCy8DyDOHd1HOaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=fQyiFzwvFyF4QWgfTLks/TOsVNwZHkvTo/1Hyeg4rkJR/ct5mqnC4/VY8cP7tmZBK XX2RFWxuf7aQ6aJynIdGpewfHJj1JKVnQrCxgNQtg5w0/2fZZjPCG/Z7ktH2ItgN2G WToMJccOUZdxrco3JmFaTUYHG9NOkRLTxSKp1t3Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731544AbgCCSBc (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 3 Mar 2020 13:01:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:45670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387993AbgCCSBb (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 3 Mar 2020 13:01:31 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 E016320836; Tue, 3 Mar 2020 18:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583258491; bh=5XFHckxjy6Hnk7i+dseR4uft0gsRbCy8DyDOHd1HOaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pql4/BHpEYsauSQkT4o9zCy6L00bIvkPi9E4NGcXnqYbGrMN8EP8w5vBU37ndMM8V HGSqwHkwjlDJ4nVi2cybnn9TyxtA7JXpVwX3OpXH2a8bwx3++ql9I9xSv8i5xzROwp XWYKhAI5R49K/Bfk86DKOA6sSgpo58r2lRrm52CY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Horatiu Vultur <horatiu.vultur@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, "David S. Miller" <davem@davemloft.net> Subject: [PATCH 4.19 30/87] net: mscc: fix in frame extraction Date: Tue, 3 Mar 2020 18:43:21 +0100 Message-Id: <20200303174353.436641100@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174349.075101355@linuxfoundation.org> References: <20200303174349.075101355@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/net/ethernet/mscc/ocelot_board.c +++ b/drivers/net/ethernet/mscc/ocelot_board.c @@ -105,6 +105,14 @@ static irqreturn_t ocelot_xtr_irq_handle if (err != 4) break; + /* At this point the IFH was read correctly, so it is safe to + * presume that there is no error. The err needs to be reset + * otherwise a frame could come in CPU queue between the while + * condition and the check for error later on. And in that case + * the new frame is just removed and not processed. + */ + err = 0; + ocelot_parse_ifh(ifh, &info); dev = ocelot->ports[info.port]->dev;