Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp33325imm; Tue, 7 Aug 2018 13:22:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdEwmrQ6rUp/G1XpZaf69zTXr1YEs4Ffs+xqH7+9QqniVRmN9Z3Pj0VDI7oBEJ6Vdwn9f9i X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr19100066pld.43.1533673320577; Tue, 07 Aug 2018 13:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533673320; cv=none; d=google.com; s=arc-20160816; b=0s7i4HCkWq1GvElwHWH2K+o9GTNI6GCJk63JlgHjNSiQGHTd95KeSmpe82SHctMoVC V2Uo6NCQPmdWVvQ+wdvf2VpGjXDwOoUtieqn2seDa5JR7fLXq9YXbbVkexoj8Sm7A115 nXSSIT95AvDvP3LI9Aen6W7xBZSYTpiep6TgCqB8lYLoCVohlEWkxyT7ASkioWyKkfQU XolZpJEWPPT/EJAfljUpjVOeV0bsN3X9CuPpp6PZMuraDUuMsS8MlHYY5UeWJP48+a6Q yAHSEl/L/jcwLO/UiEGtZLV9yOoEZg5t5lI3EnwUkRQPVMu7ePAAhzhc+3wgZRoW/e5E +z8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=O9XhZes3XkCWD4AfXktYNpCHHXCO6b/it/cZp6/hFno=; b=SReE3usIJKbmnm+6M3anlh5LwhU/cst1NPiRkQFuZ50SU5FZAk+DwPWFuVbfAx3wkB vzC7vKFy9xwvJj8gD6tJUxlL7Cc3coPnXGkfk3p+ovy9jahWXmjeKr/F/Ecif7JnN0+T oLdlDw3d+bSzK2+c6sQ9sY1jod2NTNEOpLV4lDLDpz3pICZRTqpFzwf3YPPI8sD8FPz5 eKBwZxkAY2G2r8giFX/Refr0X3rkkOzNL99l+6v1nfVZ5o0/P9azi+OiNdEs6fn+tykF wqHR3fr4dBKZWPH1lLiCEw2+tXXs7wIM+/eKr1lRsoHfutPztPd1eh3KfK6p4DqhtfPg hyOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si1619364pll.138.2018.08.07.13.21.44; Tue, 07 Aug 2018 13:22:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727610AbeHGWgM (ORCPT + 99 others); Tue, 7 Aug 2018 18:36:12 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:50204 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbeHGWgM (ORCPT ); Tue, 7 Aug 2018 18:36:12 -0400 Received: from localhost (71-36-117-41.ptld.qwest.net [71.36.117.41]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 1E937100A8C6D; Tue, 7 Aug 2018 13:20:06 -0700 (PDT) Date: Tue, 07 Aug 2018 13:20:05 -0700 (PDT) Message-Id: <20180807.132005.2055315056779068667.davem@davemloft.net> To: yuehaibing@huawei.com Cc: santosh.shilimkar@oracle.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com Subject: Re: [PATCH net-next] RDS: IB: fix 'passing zero to ERR_PTR()' warning From: David Miller In-Reply-To: <20180807113416.12680-1-yuehaibing@huawei.com> References: <20180807113416.12680-1-yuehaibing@huawei.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 07 Aug 2018 13:20:06 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Date: Tue, 7 Aug 2018 19:34:16 +0800 > Fix a static code checker warning: > net/rds/ib_frmr.c:82 rds_ib_alloc_frmr() warn: passing zero to 'ERR_PTR' > > The error path for ib_alloc_mr failure should set err to PTR_ERR. > > Fixes: 1659185fb4d0 ("RDS: IB: Support Fastreg MR (FRMR) memory registration mode") > Signed-off-by: YueHaibing Applied to net-next, thanks.