From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B78764334D6 for ; Fri, 24 Jul 2026 15:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784905758; cv=none; b=Ypm0Fm50f5x1xSlqierSYQkLfgSgYaSkHWg9ftx3DuXRbE9hkax9xqB5Us5ZjprLoepd2gjPLA88bsUFC2b3sxEZl5+N88eqDfAFf2VSZd86/xJXMIuGTn6pNVBMP6gW5eRsS5ak4C9YNsHp6XI/iis17Q2zk56zXpr5WNkh3zw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784905758; c=relaxed/simple; bh=LJj0wIf6UV/V4kejtTOZwHLYUh1lYpv+ZBzBE2b4hXA=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=RBiju13uWsQ2+lNLI26RHEkwc16BO//qryA4fmsHEZk9HLLRvw0noJvY/mdMMwkESTA+r+NlWYOFF1cdLatVg6VheRBJPN+blgzJ+OD0f/KceG4aBExHNdH+WnEgu1s5haD9zE8F1X6xIAp2FoNpToA5JJpC/B/fCbTjhIv2lkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=dX/HIUYA; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="dX/HIUYA" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 467CA1477; Fri, 24 Jul 2026 08:09:08 -0700 (PDT) Received: from [10.1.25.28] (e122027.cambridge.arm.com [10.1.25.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 228F83F59E; Fri, 24 Jul 2026 08:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1784905752; bh=LJj0wIf6UV/V4kejtTOZwHLYUh1lYpv+ZBzBE2b4hXA=; h=Date:Subject:To:References:From:In-Reply-To:From; b=dX/HIUYAAFQjuuwWBciRHXbXL2bie+x7ueubE5ZdQzZrkuvlJweWw2IS0k6zsPWYW fMYPHshdpiKT/7PYudkdfUPmVK3QHMAKO6jSzUz1bBWHuHVZZk9pUzhBQL04PjNB23 uSXEhZQ1bywq2QJpXLNEjKu9O8xyPSbts6QouNvc= Message-ID: <64cdc80f-f8a0-482a-9207-059a5f45ca68@arm.com> Date: Fri, 24 Jul 2026 16:08:46 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/panthor: return PTR_ERR() from devm_drm_dev_alloc() To: Osama Abdelkader , Boris Brezillon , Liviu Dudau , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Grant Likely , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20260716140337.10679-1-osama.abdelkader@gmail.com> From: Steven Price Content-Language: en-GB In-Reply-To: <20260716140337.10679-1-osama.abdelkader@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/07/2026 15:03, Osama Abdelkader wrote: > devm_drm_dev_alloc() returns an ERR_PTR() on failure, but panthor_probe() > always converts that failure to -ENOMEM. Preserve the actual error code > returned by the DRM core instead. > > Fixes: 4bdca1150792 ("drm/panthor: Add the driver frontend block") > Signed-off-by: Osama Abdelkader Reviewed-by: Steven Price I'll apply this to drm-misc-next. Thanks, Steve > --- > drivers/gpu/drm/panthor/panthor_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panthor/panthor_drv.c b/drivers/gpu/drm/panthor/panthor_drv.c > index 487eedb72ac5..847db031e165 100644 > --- a/drivers/gpu/drm/panthor/panthor_drv.c > +++ b/drivers/gpu/drm/panthor/panthor_drv.c > @@ -1824,7 +1824,7 @@ static int panthor_probe(struct platform_device *pdev) > ptdev = devm_drm_dev_alloc(&pdev->dev, &panthor_drm_driver, > struct panthor_device, base); > if (IS_ERR(ptdev)) > - return -ENOMEM; > + return PTR_ERR(ptdev); > > platform_set_drvdata(pdev, ptdev); >