Received: by 2002:a05:7412:d1a0:b0:e2:908c:2ebd with SMTP id ba32csp8187rdb; Wed, 23 Aug 2023 18:16:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHW3ZKgCWQv4y3WHxvIdI77fmtwDO9YiX4xZjxuhR7MsvqJskt3t8TUt6Zqw6/ZtZm8l4zo X-Received: by 2002:a05:6402:3447:b0:522:30cc:a1f4 with SMTP id l7-20020a056402344700b0052230cca1f4mr12620670edc.0.1692839801937; Wed, 23 Aug 2023 18:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692839801; cv=none; d=google.com; s=arc-20160816; b=jJHloUgIz948eijxT6vrZwFT2sv4RFl8Yjvw6S4vRN0xSr+8MtfmQzVPcSxO4DXeYu 3QaVgbSGHd0vGfdPnmM51pxdrE3XpvQ+gZsGf0+w5d2aAxBOiRopkJlxHIW4N/OzFyDM d2f8/2Od1gir9KNJeah2CE41TqeP2eIGugNDhz7IuUazfcsYLBYeUlbxlTXojo3iVjL6 lhSHLdkN+4TUsD0rxP6k4mm1CC02AMb1jrJuPq4KN9YEzL+jiSXYHeTBOcmQxbsgfUHQ QzMNFZBkAzMWOl8sfrc8DUZ+zmekVzvkCEZbT8PO/Ix5wXlAAQmDl155RzA97Wu1IVxU xETw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=PKMM8P5YOt0AOJW+qGW7ZIItl9Cbd8Hejuko882qif4=; fh=0q+lJaH/Hb81tIgW25zA/1ym0xPi5Kkr8dNk7JpNTdU=; b=v9oEZz3J+8ZCeLqRBqFlhToe7kwgPBcGjgi1w1syrvOo9P6L4Aq6lxaskbfkrbaman ef/b9udvBezLzWR2SamRR2wnspsyaMv0+ebhqgaoLpF2/rDJGLi04DfohN+B9E1JZU1j 2r5SDCEk9Trf6gBEGF1Ua+DGdQyjr6F9nYerFulBMkO+h/g48lWpjlFAWyNNGiC/U3Xt zxDnyhNMCXfZnUj9DFaQ+r6QYHwTOEQjwytk/kO2rRl83ct2ish6M2HQ74Lzw8r5Ds6S iwEAv8Yu0FU2tscj3uQkLXjaRIE7y9nZfDtpP9KTfH2a8KbCUInaW0n4HEheYAyvISAg 6Wcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pRzIDz5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020aa7c9cf000000b005243be0361asi10066975edt.439.2023.08.23.18.16.08; Wed, 23 Aug 2023 18:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pRzIDz5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237962AbjHWXHc (ORCPT + 99 others); Wed, 23 Aug 2023 19:07:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238462AbjHWXHb (ORCPT ); Wed, 23 Aug 2023 19:07:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1520E51; Wed, 23 Aug 2023 16:07:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7ADB0611CF; Wed, 23 Aug 2023 23:07:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06946C433C7; Wed, 23 Aug 2023 23:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692832046; bh=ZvPiminCOsELeBtIIeJltI5yvcvIv6w3DE0K33apG3Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pRzIDz5ocvFqDnTfxPJYp8Ib9jodQxSmtwvXuYdbXUDEpFURAxUwOle3uYJigkAr4 jW+YzuWLoIpioAYArPIxYow+Rhk/Gbk9ANx5efk8708HwREGiu9EmUwnHuHIB4SbFk sBeQOhlA5gdMjBsfeXMvfBKtFg/Pd+vyPkiHkYDCJxQUnlMulCZrWlc+7szZqoNRmv iDrNGDtc6EUwimR4Gg6JdPwXs9OEQa2Oau/3CoIRC9qTNh3AhE8R3v4Ga3QFQ794cu 739gjVACrsgd9CLusxQvcJeSb6OlT5MXn/BE6ewu1IhTdGNmw04caNwydNu9iP8Gio RvCnl2FTVJrlw== Message-ID: <00462bc7-43ee-784a-3296-8051d69575df@kernel.org> Date: Thu, 24 Aug 2023 08:07:24 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] ata: pata_ep93xx: fix error return code in probe Content-Language: en-US To: nikita.shubin@maquefel.me, Sergey Shtylyov Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230823-ep93xx_pata_fixes-v1-0-d7e7229be148@maquefel.me> <20230823-ep93xx_pata_fixes-v1-1-d7e7229be148@maquefel.me> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230823-ep93xx_pata_fixes-v1-1-d7e7229be148@maquefel.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/23/23 18:47, Nikita Shubin via B4 Relay wrote: > From: Nikita Shubin > > Return -ENOMEM from ep93xx_pata_probe() if devm_kzalloc() or > ata_host_alloc() fails. > > Signed-off-by: Nikita Shubin Doesn't this need a Fixes tag and Cc: stable ? This is not really a bug fix, but might as well be complete with the fix :) > --- > drivers/ata/pata_ep93xx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c > index c6e043e05d43..4ce0f37c7a89 100644 > --- a/drivers/ata/pata_ep93xx.c > +++ b/drivers/ata/pata_ep93xx.c > @@ -939,7 +939,7 @@ static int ep93xx_pata_probe(struct platform_device *pdev) > > drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); > if (!drv_data) { > - err = -ENXIO; > + err = -ENOMEM; > goto err_rel_gpio; > } > > @@ -952,7 +952,7 @@ static int ep93xx_pata_probe(struct platform_device *pdev) > /* allocate host */ > host = ata_host_alloc(&pdev->dev, 1); > if (!host) { > - err = -ENXIO; > + err = -ENOMEM; > goto err_rel_dma; > } > > -- Damien Le Moal Western Digital Research