Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1607599pxb; Mon, 22 Feb 2021 06:31:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwIGnn57BF785My+6lb5vqDokfZZrmJz2F90Efi8CjBbhAFd/sOV3gfDFz56X7DKKqF3QB X-Received: by 2002:a05:6402:610:: with SMTP id n16mr22118089edv.288.1614004313665; Mon, 22 Feb 2021 06:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614004313; cv=none; d=google.com; s=arc-20160816; b=crb7TJoLMUm6GrPwwjiXfGUccXq15RihpCgM28GRZ9PoFzQi6SLKDS3p/zl9L2ObYw t/JS3fUTms6trA1I94SZKk0FbB16TEggmLFyqUuO+c30igRHctt/I0DPDDykH9ZNgTEv IQZvMaOze8UK9qIU5ZF/Dm7S7iQD/6jypzzMN1FplweE6ZD/R7TNeKsMBvtUUFEnyUsQ cEhY66S6kIyrBCWhxozR2DGfkQFWeP1M/4AkaoOVAym5BygM0gK5RltRkHeoXVsxrYc7 DXdI7ETKJ2rdYGBO6gQRdBNJnMbD0m54hANbg9QwuH7Pw6rVsCnK+zj2LLG0uengoOth k9MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=+llz9LfhLBVCUpZqG/vQo43xUUlwEOgwvCCaUxZ/hJs=; b=jpL/MWTpdDBJ6P/H13n+woyd0jvIL0HRqAZNYS3ZuxypbfzCgZy/00fvodyvBWMNXT m+dBVUnFIrVAcg6joGRv/OyT1gLQN/ZvqZDKmgKPmggTB1cGTflm0/rZK9LkiLTOZxSI wXaUUBI5kA1rIEcZcyMUVxxq533oXT+Tf6H+QaSEEuc5+P+gOrfMN5YMOI0r3mpjIfT+ ASfIbkAEqCM/dMjhLTfvQmf+dpeyPmFiderUWlSEmAmznoSMEgH+RECQhNqKsuGcT4rZ dbu9qccPqIyK9pyZduF7CoNojHeuL0GTDhTH2eEIyJRShwMe27paGTSzOrM4xD5JG7UY yRHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si12496807edj.22.2021.02.22.06.31.27; Mon, 22 Feb 2021 06:31:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230501AbhBVO2q (ORCPT + 99 others); Mon, 22 Feb 2021 09:28:46 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12639 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbhBVOWs (ORCPT ); Mon, 22 Feb 2021 09:22:48 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DkkqF2WBTz16BWQ; Mon, 22 Feb 2021 22:20:25 +0800 (CST) Received: from [10.174.179.96] (10.174.179.96) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Mon, 22 Feb 2021 22:21:58 +0800 Subject: Re: [PATCH v2 -next] IB/mlx5: Add missing error code To: Leon Romanovsky CC: , , , , References: <20210222082503.22388-1-yuehaibing@huawei.com> <20210222122343.19720-1-yuehaibing@huawei.com> From: YueHaibing Message-ID: <4f4ed6f2-8b2d-30f5-20dd-f27049621399@huawei.com> Date: Mon, 22 Feb 2021 22:21:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.96] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/2/22 21:23, Leon Romanovsky wrote: > On Mon, Feb 22, 2021 at 08:23:43PM +0800, YueHaibing wrote: >> Set err to -ENOMEM if kzalloc fails instead of 0. >> >> Fixes: 759738537142 ("IB/mlx5: Enable subscription for device events over DEVX") >> Signed-off-by: YueHaibing >> --- >> drivers/infiniband/hw/mlx5/devx.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> > > Thanks, > Acked-by: Leon Romanovsky > > And please don't send new version of patches as a reply-to, it is > annoying like hell. Ok, Got it. > Thanks > . >