Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1712587lqt; Wed, 20 Mar 2024 11:40:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEGJj0XRvGYuyrbxME5GKcVDtw1/V7gMTYK+bplsFrLF8FTsRk0cXclL2zZKJtsmjXXixWPpfUYTh1NVlPdYQQAQ1iuqLCHk1IAMzr6Q== X-Google-Smtp-Source: AGHT+IHJM2x6CK02L5G+Mt4YQW+A5ziPuI7iNneJcIMp9YqQMmRLLHYcD11Y6zFKXsGD6a2UJK6e X-Received: by 2002:a05:6a00:23c4:b0:6e6:a113:da0d with SMTP id g4-20020a056a0023c400b006e6a113da0dmr8366143pfc.3.1710960004171; Wed, 20 Mar 2024 11:40:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710960004; cv=pass; d=google.com; s=arc-20160816; b=nhPVSv3iHN/JkiEVWjcO3i0gZ3giQF2Ewlr1uydHX8bKYhv9FWPDlZwgHG+rvMOAsI rdANJp8FPf12NFjpac2/3oF83pRpp20qmO/dLem3m+UQGVRmKNjvdzbmKvDvO88jZSEG /PW++UgDIZWu5qb3921k9yv4S2t8i7gRQ8E/0n7TaIB1pwhq7QDUvbWQ91nG/pXjRxjt vO3n1zQMLsKDLx/YUfUmw1/Qt/tl0iDSpDw+ILkcoF0amqyokeNEe9v2sluTfevaolO5 EF15QXUxJEGFifBbSOnUhMxAzIDTcP2skeUU6kE/rd4jnPyQnjV1mfz3zNqa1TvAV1AF xUGw== 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=v8jmgWz3VAY8ZzreiulUbSiKLh7pUnFJyujK1sVIPS0=; fh=pUSX9fcWAAWyJ3iLi7lHsEwaDftC3Cv5F0twBkG119k=; b=dehptCf0HTYxV4JiDYEvrfPiRNO/h6PtB+8kMHM8Vbkp2r9vARXg/QFGhHEMRI8gOi xPcNwaC+G0cRBbQfmBSExoi3+1sQvtO1JPhpEfxjeIZqpHw9m+b0JzFEorsH7BbF1uaI bAEr3Ah28o0peR0U8PAIXED8+7epfowC10qYLAaZyyzwUqmaZ2lW+VlQG7lRfgh4x2IW WJEJNkU9DdwkLGusk2gcqhWYhwrwpKCEsH4mecV30eb+v4wUGU6zUrHLmibDbiwZ6QbX bz6cXwcm0+zjosq60U5ChL6/EjviMpjX91oWPwjefuXfJiDqW4MOWTUGibncqsfbwjtv 9nEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=XHgD0N30; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-109142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109142-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a5-20020a62d405000000b006e646613e33si13539776pfh.251.2024.03.20.11.40.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 11:40:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=XHgD0N30; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-109142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109142-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 455E6B235C7 for ; Wed, 20 Mar 2024 16:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BEBE54BE4; Wed, 20 Mar 2024 16:06:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="XHgD0N30" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C30A34F1E5 for ; Wed, 20 Mar 2024 16:06:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710950781; cv=none; b=CpJ3udvfnkztvHeCpfdIKgR+8GCa9lEXBD4DIvKHt4Wse3hkfE+7fKV6E5yl0+ZbtRNnT72j65uQDY8HuygVSeejQoIm96dTzbBEc3fGSYBmP7ZNBYtg9aaFwXuvGEI0ncieMVFYZZVcLuzkC9nuXgvbrkgWnLm8cD5DD/ohF20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710950781; c=relaxed/simple; bh=s6NQedUXfZwfZWCI8U68XDjk31dsNA/Vfqft+OrXjBY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=COReb05UzXDEk6IigptXXNBNNYb4Q9lr7+WoSwcm1hFz5MC1KhOov5IjSESgl2MvfHx/ITazh/sXz+7wRIn1LWm5GjEGfj6zgdZQDy6rk5xu13LIY4YIh7dDq5Svunx9oG54pbfJplcJjfi9iqAVAT+cposw9sSAjEV8h+yx1IM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=XHgD0N30; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-341950a6c9aso630401f8f.1 for ; Wed, 20 Mar 2024 09:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1710950778; x=1711555578; darn=vger.kernel.org; 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=v8jmgWz3VAY8ZzreiulUbSiKLh7pUnFJyujK1sVIPS0=; b=XHgD0N30+56AvxO3Koh50UrU+fvuMVJzH5XHI66m5HQeHUc5XywJAHgdhcV/wQS2Qn 48v6f+1G1pNAzO69QBv05Q1QDu3Nugs9TjZJxUB+v+MKYXdVUAJGmsF7Z1RS6AmWvdo1 T8zq6vi/RXNdsyhG1ANCzCAPweApB2YA9rAOD0BBIdMyncuuff72vRp1QV06UMnRTAUT cRgMbeIXZWRUHAIpcNinepaiSUKbiXdxCD3gR/4CQIg8AayqHRarH7qCRAEPy6ZVusoc d0dMAeUpiaOFOr+srddJZRLpSMDdikuvjsz6fWfU8U2YymLz+dOxz0IO/lAAz8+Tq9Lo lWAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710950778; x=1711555578; 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=v8jmgWz3VAY8ZzreiulUbSiKLh7pUnFJyujK1sVIPS0=; b=G1WjzmR1f+yvd8iLRaCqyjd+1fLw4XlWYpSWVV9JUx0bAlCJH00lfPy4WQcZ0vQzl2 J2c7zlZbxqOQiAjG8b/TXYD1koH1r7E3KvV9w9jnguIe+LXSgubGmksG7MYnIy8Kj3Yc ykeuohw3XHSqF04KGOsdu2wwoaPHLiZPhrl8iW/5rEXKjprEg83CXWVbQ/PBmYbhdaYj XH18eA7R6z5WTN62HYwwv/SPI2X1TnT9rJQt6+XznFoORdgr02Hi/HEucCSmalo3cORA dxhFZLBus5x4YgJ2SOFe6ewMF8AUw5CPQzXZ/JFHeNbntyFNlRKyK+AdiA62weCeLZ1Z v0gA== X-Forwarded-Encrypted: i=1; AJvYcCX4mxrf22C50YM8OPGM198ghlbUHUdJa+lnDayK9ctfIZx9BcS3dQiTyudpVVL/2iohBHgVXlzhr2bhCLuyaaiagQCi/DPaSIBsW20L X-Gm-Message-State: AOJu0YzLDwvcW+KZGyUFKaOYKJzOZTplI+C2qdJUybAFU4p2XBz45Wr+ vf+03s7jPnkVrlBnCnMm4JfRzxNM4TNJfOCJGN4vTikb47n1JuyfGhW1JodYQV4= X-Received: by 2002:a05:6000:ad2:b0:33e:c7e2:2b64 with SMTP id di18-20020a0560000ad200b0033ec7e22b64mr11376760wrb.42.1710950778011; Wed, 20 Mar 2024 09:06:18 -0700 (PDT) Received: from localhost (mail.chocen-mesto.cz. [85.163.43.2]) by smtp.gmail.com with ESMTPSA id o9-20020adfe809000000b0033ec6ebf878sm14939300wrm.93.2024.03.20.09.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 09:06:17 -0700 (PDT) Date: Wed, 20 Mar 2024 17:06:16 +0100 From: Jiri Pirko To: Simon Horman Cc: Claus Hansen Ries , "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: References: <20240320152246.GU185808@kernel.org> 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: <20240320152246.GU185808@kernel.org> Wed, Mar 20, 2024 at 04:22:46PM CET, horms@kernel.org wrote: >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. Well, otherwise this will be in the git history forever :) > >> >> 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 >