Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1591303lqt; Wed, 20 Mar 2024 08:23:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNlxuMuOvSB8DIt7XU2l1S9fsgASV6AXvuaZtJ7OInIN9IOYt5/+xSfRaiuypNEzT7dy3E72y1o7CIWlvaIbcWXj5Cxj5nxATdrU922A== X-Google-Smtp-Source: AGHT+IHWBdEIz0kB/hiT3ozP5TfwsPdGGItHa8H3RX3fCrv1Ym2jCWypAtyzKsIIVwqdDO4pW2tk X-Received: by 2002:a05:6359:4106:b0:17b:5cf2:fe5b with SMTP id kh6-20020a056359410600b0017b5cf2fe5bmr24030096rwc.4.1710948186776; Wed, 20 Mar 2024 08:23:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710948186; cv=pass; d=google.com; s=arc-20160816; b=ZmiF5fU7x6VYMdUgIY8SeDaB85GfcY/MB8fuyZYtUAaVbqoa1DpTpQ0njd4+UUfB84 gcmQHAFZ1dgvQiZkAaHecJS4EDMcGSJ8MCYr1RPvVZijJn88KK+n1oWokHI5mXxOupMw fbHRNBSfc87CHdi63An08e3UJtvtBCfFrubqoooZo603bWYYl+375pyXSXj7JbnSZCHp AgmMMzR36k5ZPiDtUC+2N+Qe2tx8XuPRkYBr4eWkdEahtxieJsX9CS21r3p25IMcSpNX mFmhOBzh58sTDQ92929RSn1hiqt6FU1EjipmKghF0bLeEWXQxAtB9UDDSvK0MDnLPJGu d2AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sxDG2TR7TLpK4kbfP4A+4jbSl851hoIw/dNnMeLqUQ0=; fh=ig/JM7VntTKN298LZHi0vkcwx7A0gJCU3z1ZSRiLvc0=; b=zdpuhmH4YOaioc/resKBBozw9tOB/6PrIryd02iwnjc0k+yFODiCscryJGGfU0zkx4 y2wzqMjhr0yoFDmNA5q0J5IOQcZpr9ZakVQvgNbNEl/PdLQdDjzNwi+VzV7jd6NGKoUM jLQSmCF4nfF8erIEomvA23V3e7X52XV/jj94ZqqU031ZTzjxCdgiD5yNjJwdHETT78O9 u4nlC6JBQjFvr34BVtU9jqx+iI9rxK9tYN8DIe7Hr2ce78ellIEVL+AmlJkgbtv3Pahk TXqP5TPobSHL3AC7+rnk6OO9uZvDYh+XBvBZ3qwE8UNVsAzVnPfyrB2Q8g/2TClvo1GK 52PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NLoO2ZkS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h3-20020a654043000000b005dc855c40a4si12471313pgp.645.2024.03.20.08.23.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 08:23:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NLoO2ZkS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-109086-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109086-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B2ABC284214 for ; Wed, 20 Mar 2024 15:23:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D65A52F72; Wed, 20 Mar 2024 15:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NLoO2ZkS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 820E44F1E5; Wed, 20 Mar 2024 15:22:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948172; cv=none; b=EXmQ3wtzSRrhafnc+gBOB/dgPgklu4fAZnfYCF6U/0nk0seC/Pl5ty0GenHSYxdCA1QzWp7qbb0RejLstqocRtKnc3CGb2kQG3Lz7pvP4mJOpLRO1wIZ9dCTy3c/gyKNFiDwUg/CjtxQXQtxXMJaadWvsH92GNcrC3EFN1/qL98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948172; c=relaxed/simple; bh=TR0ElOCWlrACmeqJex852AV/Z/HsxEc3rXJRmzD19No=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pQF4JbqZQvpHKmbbrIKcLM5CN7lgfZSGC27hDS4p8bcxNzgAtDPdwmF91pus9UT74QzdcgmG3jZe6TS9kIOijSK/BcL6XKWDlcnpRQ9RaQb+pymvNpRKILsGT1+7m5808+NJa2pMGfclPcYOQ8RWYyLr0WUBT2AnptWjwKsdksQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NLoO2ZkS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD0F8C433C7; Wed, 20 Mar 2024 15:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710948172; bh=TR0ElOCWlrACmeqJex852AV/Z/HsxEc3rXJRmzD19No=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NLoO2ZkSapH4wny76mCgRSWlVx3wBIzFZktsCZKFQzpOaAbIksSEyQa5wykCmHfg1 NUmYfH/wVqlBtmig2kLAaHjWCtUEXlkDcE+6bL8O0T2kL2ZJPtC5iIYasSzL9KUlKr BphAU/MVKoRKfI6cwq+BEkjk46HBIstlmX23wcIUqdjKlNw8o4xGWdPVf3yEx2rRhk gHRBEdIPuYN9FHSln22Fpbl90TIno1SnHA5bAnDBCptVno212SUPTpqlbVmGZr34m7 LNKzaIU80NImSbgF36KILGQ+UaRCAdy73Kcx1wPBuxcVxVEjiLpf1hIsycJ22OMxFn EVdznuK7ZWOBw== Date: Wed, 20 Mar 2024 15:22:46 +0000 From: Simon Horman To: Claus Hansen Ries Cc: "netdev@vger.kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "michal.simek@amd.com" , "wei.fang@nxp.com" , "yangyingliang@huawei.com" , "robh@kernel.org" , "harini.katakam@amd.com" , "dan.carpenter@linaro.org" , "u.kleine-koenig@pengutronix.de" , "wanghai38@huawei.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net v2] net: ll_temac: platform_get_resource replaced by wrong function Message-ID: <20240320152246.GU185808@kernel.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 20, 2024 at 02:19:15PM +0000, Claus Hansen Ries wrote: > From: Claus Hansen Ries > > Hope I am resubmitting this correctly, I've fixed the issues in > the original submission. For future reference, the text above probably belongs below the scissors ("---"). But I don't think there is a need to resubmit just because of that. > > platform_get_resource was replaced with devm_platform_ioremap_resource_byname > and is called using 0 as name. This eventually ends up in platform_get_resource_byname > in the call stack, where it causes a null pointer in strcmp. > > if (type == resource_type(r) && !strcmp(r->name, name)) > > It should have been replaced with devm_platform_ioremap_resource. > > Fixes: bd69058f50d5 ("net: ll_temac: Use devm_platform_ioremap_resource_byname()") > Signed-off-by: Claus Hansen Ries > Cc: stable@vger.kernel.org > --- > v2: > - fix accidently converting tabs to spaces and wording in commit message > v1: https://marc.info/?l=linux-netdev&m=171087828129633&w=2 Thanks, Reviewed-by: Simon Horman