Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1591390pxb; Mon, 22 Feb 2021 06:09:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB6Le1lGIM9GnP4mD8r3Vb1XFlQF2b6cvZzp9WeA0CK3vE/M3Qp45ed1DUQT/gRBGCOdbe X-Received: by 2002:a17:906:3916:: with SMTP id f22mr21179049eje.328.1614002989267; Mon, 22 Feb 2021 06:09:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614002989; cv=none; d=google.com; s=arc-20160816; b=QV7cWhatQGw7DFb2cSO+/zB3QSd4QokCZXrVVYWVj/xEAHdHqfb9hjIQ6wcVCNaX41 MffS1Cf8SHlcVVzZ5ThEoiiPmBv5BZYFwd4x91JLtgwTi88uz5K1oY6hXXxUqlSdYQ+1 aud8hx0McIBRAygJ1rvl/jg3dW+K+BdjQ0Xl5yETWWda+oP9OTVITbSi3h3I/vbHQjQV uk6W0fS2yr1CToi6Sk6hE5w/00XiCy5YE85iYhZ5TKlZHcmOqOSrV5mQx8DgFhZD6KFw Ge4zlyaxPXM6/eMaHpSb5x6ifTh7ZTdHBWo2iSIKDDLvJRnLmT9DalrVyTpMXbpYGS7P n17w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/06SVAiNOwpMKb7gzqShJTqWC4GzsrEYv/o4T1eTC40=; b=bb5OrcFuDVC5rwg98moG/mQwHyJXZ1jJizn60Q6ZhOZPMOzIKUZH8OSMDCxUs2KAp/ CGSEQmfqlNqYK4aSM4Gfo6f6x0J+dHJaEDVQMiRfGFU7fndhvHHJ3EklnUZZQTVwvCb6 nS+mtz9aATfV7w2dUxipVt2sBm5zlX9LSqIaRzAAtw8HbNhDkYDXcUafmMMi+3oIDCHl OeSkMkmLhfGrkXcjtcTLVrYIPZu+cavB1O5SnKGWIfCWTwpGjkFrUN33QkM+gEuzY8/b ga12ZXMwqZE6Bzyom3x6Xki/+Qco0eRf2/qMT3xontdUoYiOvhR7ydqpQbx0bJiRjCnj 3fQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MkKoZ1LR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds7si14149341ejc.212.2021.02.22.06.09.27; Mon, 22 Feb 2021 06:09:49 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MkKoZ1LR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232260AbhBVOIc (ORCPT + 99 others); Mon, 22 Feb 2021 09:08:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:36702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbhBVNX7 (ORCPT ); Mon, 22 Feb 2021 08:23:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 119DF600CF; Mon, 22 Feb 2021 13:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614000198; bh=xqQOF02MY68NQaErsbZLk6z07mtojH5uvtvco3RHktg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MkKoZ1LR/FxUlROkW7zpmvzAm5DW02Ec5ywdqWt9HSH9KTahBeSAL9RTwGeOo75mc 4V45Bb8xOfVXsqscPbwgTySAdh9JswoGghQzV8ANe2/vQLOzHU0VGdyeSOpZ2O4Y5R Kl7oGBMycQx/DXI0kCKSPEEBg6ROpzBmBSOsQdqrZy317tY9mG1RB8vCDrjKtXsvx+ plfd8++//dvtl/3DV0iv/JkD7ZOTo+8iJ/n3aJvHWQUpK7J/4cDbJ4FdYCkFrEhPBq quWSAX2UkukmyCt5I0lei8eHE8bun8w+dBuMB1ZncZNGgtFSHm3Vuq3m1ANVknidVN 9/cfYCjzM8KbQ== Date: Mon, 22 Feb 2021 15:23:15 +0200 From: Leon Romanovsky To: YueHaibing Cc: dledford@redhat.com, jgg@ziepe.ca, yishaih@nvidia.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 -next] IB/mlx5: Add missing error code Message-ID: References: <20210222082503.22388-1-yuehaibing@huawei.com> <20210222122343.19720-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210222122343.19720-1-yuehaibing@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks