Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3534605pxj; Mon, 24 May 2021 08:51:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7R8WrAIEW4KqeBVxmomUq4/kIkhfXUP4cRVT+xVuagFZ25tbEhP/KXtOmaUhivfSuVrrb X-Received: by 2002:a02:a505:: with SMTP id e5mr24928096jam.10.1621871512403; Mon, 24 May 2021 08:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621871512; cv=none; d=google.com; s=arc-20160816; b=D7ZVNJytQRgQ/RxMv5Yc7wUN+omuu8weZkINwttoOvhT6rPb/GJgJ+/SmCPiWf3oRw skN3hlFRBbe7szIdZw6Aelq2kv+5HUoCkLA9PwbR1S4UEdZWoVqYCALGtRsCW8IX0P/N DScoeov3MsuVPC4NflxcfdaImqlQKAD4//ZxEs2JzDnHS8OWoWV+esQMNYZWnk31io/9 L4snfhzhBysQdwbzJOgOlNNcqjW7Na325wfXBscQa+reKlX8vtFqRSHsw/pLmYgfwyE1 uqbpGk4xuJy2a6O4Jl9dd5wI3K3O5sY9joz5SbiEum3XTi0dqWSvUYg9oew8+mcwERl7 ajVA== 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=584ks3S5iJgdkjI77vKJSythWmBEMHCo/lVlqNkDyII=; b=U2+tlJ+lH8RCHMiYvs1Rb5ak2/GN1hMWhK++soH0Ua66JJL5WG8tWoDg7Erjt67pAt P4lTh3HJoP6bkYoznWIDIMsUHcsPzNwGCJn3aFauz4Lk/q+3AidbM0pA1GGtrEh2B6K5 dt96dr9QGgyT5aTmZuhSXcuN8w51kyjLf6XjTibPIorbLeqQMgIUDLAobZ78zYL26Bz6 rNCXXfKqkxUv1DCR6O496MDB/G9FIklPh0qagaUToH91wxRT/1BRbT1OEb990BSV94V9 Yw80WOGdMXOnsDkOLS/VQFf+6axziBx5DCPymg3XeTJHWaNp4Zz+aaTLDg4cNftwJRM1 6N1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IJXBr66o; 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 z20si14010701ioe.51.2021.05.24.08.51.15; Mon, 24 May 2021 08:51:52 -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=IJXBr66o; 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 S234394AbhEXPuy (ORCPT + 99 others); Mon, 24 May 2021 11:50:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234407AbhEXPoJ (ORCPT ); Mon, 24 May 2021 11:44:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C7EA2613FE; Mon, 24 May 2021 15:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870545; bh=31in1cW+DvIMf3ESdwdUc/oOt9H6+/rRIMR2gEMl2yE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJXBr66oGfLgC6T2hw0sV19sRYqMHY3zMgLD2bb2HfKWl6BYrmwhxQnxiOYTNvrep 3MFeFV20ktiarzfu4O5UNEJOYKJ04Kc8HTdTKtB45MBr9Rc2wDL+hpWvIWNbONUm3N NpsZEKqIiDzpY7wRNDrCTBKsbo4P13cPZw+6buFI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Jiri Slaby Subject: [PATCH 4.19 21/49] Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference" Date: Mon, 24 May 2021 17:25:32 +0200 Message-Id: <20210524152325.066693613@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152324.382084875@linuxfoundation.org> References: <20210524152324.382084875@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 commit 754f39158441f4c0d7a8255209dd9a939f08ce80 upstream. This reverts commit 32f47179833b63de72427131169809065db6745e. 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 not be needed at all as the change was useless because this function can only be called when of_match_device matched on something. So it should be reverted. Cc: Aditya Pakki Cc: stable Fixes: 32f47179833b ("serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference") Acked-by: Jiri Slaby Link: https://lore.kernel.org/r/20210503115736.2104747-6-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/mvebu-uart.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/tty/serial/mvebu-uart.c +++ b/drivers/tty/serial/mvebu-uart.c @@ -807,9 +807,6 @@ static int mvebu_uart_probe(struct platf return -EINVAL; } - if (!match) - return -ENODEV; - /* Assume that all UART ports have a DT alias or none has */ id = of_alias_get_id(pdev->dev.of_node, "serial"); if (!pdev->dev.of_node || id < 0)