Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2742763pxj; Mon, 31 May 2021 09:36:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3nE9660D3JWzG7c5tWUXfFK3cREcLeeVOeHLRUanoT57k6V7ZO/HuughdnHJbp1EDcC0D X-Received: by 2002:a17:906:1fc4:: with SMTP id e4mr24071336ejt.336.1622478981709; Mon, 31 May 2021 09:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622478981; cv=none; d=google.com; s=arc-20160816; b=G9aMBgD3aZMvZdlg7dJvd3BlXQRLmO0VNHSxtNHMuF4nMnC4o8gaVa3nG8Dozq/vEI qQ3t3akWMNmYGSdFmZAGqzEx7A6zMdhyv1cL6gUumL46loFO0/tsJJztbdLQWsQrguyK 3xAqXx8mlkfgfd6//IOTCCRq8p418TgW0Ptp8obU5PbhocWaIDGW1HrJUmU/hVEblsFP 4R8ThYrNNpgRlqtSFPsbIHkZQ6eQDxEYaT2jjWHFjPJb133wIlewtQo7NZ/lDv0EDiou eZ+WxQX9JaISf0Dbv9imUupN95esb6/JU05V5wrrERz+Qbb7YKq4SzS3uwWmrrFAsCAf DoyA== 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=UFeVs+vy1A6tSMYEDNENwjCFTyP+4yD1Ges/C9BDCB4=; b=SPWmeVh6Rwrx5KtdB9rEgbMl3YU1XOJjUaRywmE4a+IZJmBQGMj/tXM9YT4ENkEkCu QvDc9JY04uqiaPdVqGTmoe/bPqUy7DTnHN1qd2HgslTdC4yDZiP0coX7Tfuseq+Q5afR ng/gj8O4ju9BJI7jcQWpQQ861WmQqR/bwXPimJ7AKKQvG9fCMX1DvuF6JabQbbZyfSDt jazXIsfKiB0kxkQCisEMnoWqYrx+LdM0aZf50ZYq64mP98pdcBUbOFtDnbUZe3I5ukuI /vIPGwVvNzntuxOXO6rriyctjZ6vyXBOuzXmXhDZRn15vycWki2Af6/nQRBN/m9+1wcV KUqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eZJfa9L4; 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=pass (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 s7si490276ejd.662.2021.05.31.09.35.58; Mon, 31 May 2021 09:36:21 -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=@linuxfoundation.org header.s=korg header.b=eZJfa9L4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232173AbhEaQgf (ORCPT + 99 others); Mon, 31 May 2021 12:36:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:40310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233910AbhEaOtN (ORCPT ); Mon, 31 May 2021 10:49:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D892D61411; Mon, 31 May 2021 13:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469413; bh=N6m0QVKgGW8hWqf5rH04ZwLzuU8P2XUjmqo5QHr/qSI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eZJfa9L48/7SrIqGMZOXVJ8XhRqTjUKRu7exoLf3FA/d131kcLviFTaoi5cqdilo8 hRGi1G1XGAWr3YXVyIfg1oWa480HuvEscYQUXX5btD516cSunmf5hvItjPRRKMRFH1 VcQgVrfTSX5ghQQuvLen6qCuSTMFkXKbMpp5YIDg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , "David S. Miller" , Sasha Levin Subject: [PATCH 5.12 171/296] Revert "net: caif: replace BUG_ON with recovery code" Date: Mon, 31 May 2021 15:13:46 +0200 Message-Id: <20210531130709.619107996@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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: Greg Kroah-Hartman [ Upstream commit 4df07045fcfd684379a394d0f2aa0cc4067bda2a ] This reverts commit c5dea815834c7d2e9fc633785455bc428b7a1956. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original change here was pointless as dev can never be NULL in this function so the claim in the changelog that this "fixes" anything is incorrect (also the developer forgot about panic_on_warn). A follow-up change will resolve this issue properly. Cc: Aditya Pakki Cc: David S. Miller Link: https://lore.kernel.org/r/20210503115736.2104747-19-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/net/caif/caif_serial.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c index 8215cd77301f..4720a7bac4fb 100644 --- a/drivers/net/caif/caif_serial.c +++ b/drivers/net/caif/caif_serial.c @@ -269,9 +269,7 @@ static netdev_tx_t caif_xmit(struct sk_buff *skb, struct net_device *dev) { struct ser_device *ser; - if (WARN_ON(!dev)) - return -EINVAL; - + BUG_ON(dev == NULL); ser = netdev_priv(dev); /* Send flow off once, on high water mark */ -- 2.30.2