Article View: linux.kernel.netdev
Article #16722Re: [PATCH net-next v2] net: phy: et1011c: don't write an error code to the config register
From: Andrew Lunn
Date: Sun, 15 Nov 2026 18:24
Date: Sun, 15 Nov 2026 18:24
12 lines
8626 bytes
8626 bytes
On Sun, Nov 15, 2026 at 08:07:35PM +0200, Elias Pukari wrote:
> phy_read() can return a negative error code. Use an int and check
> both reads before using their results.
>
> Found with LLM help; fake-MDIO KUnit error-injection tests passed
> (6/6, KASAN). No hardware testing.
> Signed-off-by: Elias Pukari <elias.pukari@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Technical Details
Message-ID:
<81110bc1-865e-4107-bac2-86d5edcd979d@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363792-linux-kernel-netdev=dewy.ruReferences:
<20261115180735.649299-1-elias.pukari@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363792-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2] net: phy: et1011c: don't write an error code to the config register Date: Sun, 15 Nov 2026 19:24:38 +0100 Organization: Usenet Network Message-ID: <81110bc1-865e-4107-bac2-86d5edcd979d@lunn.ch> References: <20261115180735.649299-1-elias.pukari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1870848"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:gIDYsZZNbKoRi9eljWoIL9AC7B4= sha256:OHgqv44pcDafl39zlU1fabic7UF0aBdEF++E4DkUkTs= sha1:lZoAWsD3ouC1EK5sXRd/nsZCveo= sha256:mfzURrh0FHZuiSpGidrn8jkwR/VAhm12D7j5UPTBbPI= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id A96EE114A2C; Sun, 15 Nov 2026 21:25:19 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d7qZiL9ohgem; Sun, 15 Nov 2026 21:25:12 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363792-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 5209B114A0F; Sun, 15 Nov 2026 21:24:59 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 4492B3759B; Sun, 15 Nov 2026 18:24:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794767097; b=Ngbh3/ZNU8VidzWXgNNL0r2Zu+jqChC4NGqHR9BLjh28NQOxD4MU6jAXRBXg1wDNlXYt BDBEeNETuwThZ0qkcAFoTGqYpRWBWMgEzuwL+F7U9BnqnhSihCW9F2oi5U6WwTNWMNoyV LlG8bRtiwIa2AILbO9H7+VbJzsoOImkHORBaoD9dJK7KRNraCEpvY3wM4zig/ndCzIQtv gMseT6O4Ddk1T0lc/PBWOdI0UMacUhzar/42M5VHOQfiXYUV9HvxRtMbUNoxlzZ9A86Dz Qi4Ut8CwATpmPs/MzNwcPh+y2ACcViN/IkwLhi3W0qtBqiD+MTzwv5HKOM9bjYBIjfQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794767097; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=Q7h5sHivOvvnGFN4BWklWRuGzq8WV7a3Iv/4wV30Qfg=; b=rCWQGRFMKoHpNYjfRNCb6/MpjGYfjs4rszEx+KqCaCW3cUH/8US+a5nGq41KOMKizOHv 2RoGrVipqHCrRol8wHLD62BHtdo82rtVUkGK7j5riiHvtnRWSEjp654vfZvy6y3pqUrTv 29a1xHflJHpZp0KWY68BXx8eZkyDr15JTbP6ssXQ7cq5tHb0+eHyEl0iqI2yLLiyxmqf+ XIakdJ49wm7mXfQidIo+rEaFHkCgTAnm04+xbcm2+/eNRr4bPg0f5OihwIQBQHetX3uSa dGPlXJHoQM8O1yvzi4I491WH1Qfa1EKjYdr9giyCgx6GduE3dJ1oJGezmEmO0KkiX7Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=BsEwvHHR; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BADC606A31A; Sun, 15 Nov 2026 18:24:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=BsEwvHHR X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794767091; b=Wq8tBjU484WinRCVLI/uhbstqbNbsZ0ZDZnrsm/JJGxJgzS/rhCvwumtSVlz63t8MOWf ABGXyC6lUFO/38b89o4lw5FcF6KuUMfpBrFd829B4+Y6wPRQfFCgHZcsPCmsS/Qu+n2sK P6Hi0FNiZScrdeN8j1kCtu1nH2VRFZAKEb1KQG+wTpv6tfH/I0UgcoGYGpv3C1FlMN7Oc oSd6C2mj7bHMvrMfiQj34pEFLMKbV4WcfdGcD4yz/oZab9KB50qCBDxYnjrYIlWZUX0gc nMmE7PCR5zpRu6Jdpqhyxbw3gStjpvU71ludcdypCsy2jAWZ16TvETyxb6VbcqqqxDQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794767091; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=Q7h5sHivOvvnGFN4BWklWRuGzq8WV7a3Iv/4wV30Qfg=; b=TjmazPCQswZkjQGnBsym2FGsnI4Y0fBh+TwhF96mtS4offHXckapK2CYHQqFtq/B51dx xMh2NXZoOBBorFpvXdcZ3Wf/oVy1vecjUxIm5XGIcuu3rraEEi7pVV1VuiVJf9yfkovcU YDpwZCtfOuBoDuWHxXX2FYajdWcFcasOFuDEiwF1ZJkZvk50tgjTUR+a4jwFv7Zjb/xC5 ox95ye626+0x/1woiTcY2Btq2rErs+2A9J3TFIJrwdLirdJPKEkuSvr7TFwEa8Lt+jQe4 yeywtUTbelipCN3sAxKKaa0ZLmIr530Apltc3bnzEDNWkzMLyUTLwICq0FalV4figZA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=BsEwvHHR; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCFBB606A31E; Sun, 15 Nov 2026 18:24:50 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CCFBB606A31E X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Q7h5sHivOvvnGFN4BWklWRuGzq8WV7a3Iv/4wV30Qfg=; b=BsEwvHHR/j7zQrShJFQZN8CX0N VF4aIrrXv5GXzCJXb+z5GbEB69HbUbCVh/h5Je97NlfAhxolZBlhNwvhPUkrlFpMsm64ekZO8FL1g 1V4GuSrvJJZTGdjm0ekQcaWP29ccENnSpkq7IJCF53ww6NscIpBCz0U4/U+2z8SYLIJA=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xSeu6-00GePV-Rs; Sun, 15 Nov 2026 19:24:38 +0100 X-Cc: netdev@vger.kernel.org, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-kernel@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261115180735.649299-1-elias.pukari@gmail.com>