From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C097C61DA4 for ; Fri, 3 Feb 2023 18:21:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4AFDC85FB1; Fri, 3 Feb 2023 19:20:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="GaXLgtwI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 357D085FB1; Fri, 3 Feb 2023 19:20:43 +0100 (CET) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B428185FBA for ; Fri, 3 Feb 2023 19:20:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x833.google.com with SMTP id bb40so6474350qtb.2 for ; Fri, 03 Feb 2023 10:20:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I8HUdfLJ9fOluP6pTe5LURaFr3Fb73S1lRG42ZZ00eg=; b=GaXLgtwIguYvV2yHm/JCp8HiVBdKe/+RbMW5EyUic/dWknNl8YhfZM3E8FY3PPVBoj s3/dZjHnN4FsAjGpAdgutjzIZ2MAKNETWPURfm6bleIeesRsCdB1qAs42x36qN9CgpKi 1JtNV7C7Gqf5+3yffHHGPyMyIQL+sC/sd/e9c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I8HUdfLJ9fOluP6pTe5LURaFr3Fb73S1lRG42ZZ00eg=; b=tdy+SSH3dZmUcrMchiP6i9LSDRxiVEAFctU0jTYHG7WtZmHBeJdVQ9r7T/WPJ5iRi2 9jEsQL8qt2OcGIl9U1tM/Smjhvqw9sd4EV0NgWroDpEUoq60njo0Zm+LpZ4r+fl6U3yg sIm1j7YOM9mFMUSM+ghtvDwt6/M8LFJArOoLM6mEDAHUn2IF8ZY1rqrhiKwTy2bNVF4e XbdWjGw18DQ4XYFiOCTbu/PFIs+QWqh7Y+B+SMFa9AVaLp7QeaO83yNRa0+UZtVk5QLZ 7ZB449e0wizykFHSGPU/WvRx3nRGl/G2YJNZsTAwsu/P6EsyM0WS5Og9zMbt02IEgSCr uW3g== X-Gm-Message-State: AO0yUKXZ7nn4sYkU0Zrc3n82qLs2hIiyV11P0TzE5p/5c2ljBV3YFH4j jL6CMYA4eXarzpnuW1pDtmgBryZFEztmjv0imUg= X-Google-Smtp-Source: AK7set9dJqqtoK9SlvHorFa6YQgU1l/NFXLLAPsz452yvdgUOp3lcJrk+/akn/OQlI5uUmsb8oB3ag== X-Received: by 2002:a05:622a:304:b0:3b8:1d35:c5c1 with SMTP id q4-20020a05622a030400b003b81d35c5c1mr9860523qtw.47.1675448439507; Fri, 03 Feb 2023 10:20:39 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-d049-1ce1-b939-5115.res6.spectrum.com. [2603:6081:7b00:6400:d049:1ce1:b939:5115]) by smtp.gmail.com with ESMTPSA id d2-20020a05620a204200b0071f0d0aaef7sm2241622qka.80.2023.02.03.10.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 10:20:39 -0800 (PST) Date: Fri, 3 Feb 2023 13:20:37 -0500 From: Tom Rini To: Ioana Ciornei Cc: joe.hershberger@ni.com, rfried.dev@gmail.com, u-boot@lists.denx.de Subject: Re: [PATCH] drivers: net: fsl_ls_mdio: prevent a NULL pointer dereference Message-ID: References: <20230105150948.368221-1-ioana.ciornei@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VxNU+g44ucxIv3jo" Content-Disposition: inline In-Reply-To: <20230105150948.368221-1-ioana.ciornei@nxp.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --VxNU+g44ucxIv3jo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 05, 2023 at 05:09:48PM +0200, Ioana Ciornei wrote: > Prevent a NULL pointer dereference in the probe path by checking the > return valud of dev_read_addr_ptr() against NULL. >=20 > Signed-off-by: Ioana Ciornei > Reviewed-by: Ramon Fried Applied to u-boot/master, thanks! --=20 Tom --VxNU+g44ucxIv3jo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPdUHUACgkQFHw5/5Y0 tyyLhAv9GGHE7j82aCnXdGgc138Dr9Rhe6SFKk/+v7tyJvuvIiqhUFN35d22L4oy IUsjIpTYoljXx/XXCNZdETYIU1DYOAqIL58IQwTZNRemkiBKlp1AKfPci1Aw3O6D l2jskOkp8T58GQ/4Vw2zdoXXEpLS94fwU7nS9zXK/Av5IvBZrXoG7KQQo5sW8r+j EdGfDjB6gFOt42NnO7F+NfBtVmsQvKSA7ElrEKecGbfCT6NhdJnY+zzNKj72Evf1 Jo9Rdb6hnep/ZfBeCHJomN1QhFvLClwk+FY7pK8VwrEzSflUfKQDIlhxefI868fo cgv+Ct2Cnm5g7zPB1VtyIzqLYQKELSKqNadxqguguCyS18wuKH65R22VxoBmI9px Aoo69mVdYBIF9OPkZ8NVPC7N2QC43vdlfYN2BsXF4hhMt1VkqBw+6Znf9wt/LI7l Hs+uPNxGOPlCMRnCT+c5IPqgq3ljg0cPa4HxA+ggC29XuYJ1dspfxIUOa2qO9hnh fbvTWB2s =IZrr -----END PGP SIGNATURE----- --VxNU+g44ucxIv3jo--