Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1326312rwa; Sun, 21 Aug 2022 06:11:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR6WbUqsC4W8uceBKW28crfM26erufmsUrtcCDiNJpKlq9tzx0yyI26o8MgkYIfnx1UMEADb X-Received: by 2002:a17:907:2722:b0:731:201a:df9c with SMTP id d2-20020a170907272200b00731201adf9cmr10572638ejl.149.1661087502712; Sun, 21 Aug 2022 06:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661087502; cv=none; d=google.com; s=arc-20160816; b=G57betOPImDicPR/grEKlihI5A0UeC5q7oJ/sUSP/lA7Wz5nGbo1Q5cF25Clo+UZoK eDXBYBrACbyxZo66i/oswJdEtoZITA86MpyNltOGzocQNhbnyQXBGILH3KjRcWBgC2zZ V3BFoI+ekeRst/dqo9w/cMlCecbhuHyiEfGa1TK+mZdBKeFC9cjHmXH14snjNcA6vuEm jbcGUmvpTFIVlnwABQ1FONbE5ZSKm8d4AUzuIQrwcX4XPiA/KzS1rLjI4lPMonkUpszz MCAnr1Yi/gMZuhrQBIxg1VuzuRxOJwPt4M4y8ezlFuxjoEhq1o/+49uKBJT9G2MLbW58 vHMg== 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=xnx3xsDvHeGer0kEVKgpAxfi6IpXewXS9yE01PUQfJs=; b=Jbiy5H5SUXmS/TCcWP/Au+rEUiRzc/KWp2Yf2IRuhT3W3YzVamA/YRU396GcK9vuFP YaIWLZIRFxToLUOY3U2KfLYaJLdiZWH0Hlfnt/ygzToQ6+LtlSKkI0BfviDnmOZ5GWUM 6RsTpVvqyPZnPtT8a7lqHCgWHFfnpwEHRWGVxzxdW2MjTEiDWTfcyMRgXp6zf5LcrZym WVwp3ICAfpOOHQzNdrcwNDyQeOqzJywnm8WBrJb9mod3bo7bFDalepQMupw0AvB/PM1O Sy0wxToJol/n7BuFkO+ufRlRs4Toc/nvLe9KAg+e0ulH9v1l7mr+As75mrHxKRZqfvHv yqew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jj5vTbCf; 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 n12-20020a05640205cc00b0044612420987si9556823edx.451.2022.08.21.06.11.17; Sun, 21 Aug 2022 06:11:42 -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=jj5vTbCf; 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 S230222AbiHULmd (ORCPT + 99 others); Sun, 21 Aug 2022 07:42:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbiHULmc (ORCPT ); Sun, 21 Aug 2022 07:42:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52CE418362; Sun, 21 Aug 2022 04:42:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F2347B80A08; Sun, 21 Aug 2022 11:42:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF65DC433D6; Sun, 21 Aug 2022 11:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661082148; bh=/eHuW2753FzFdVi75ni68T/FATapwLcqXnK87QwVOEA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jj5vTbCfbhjqhaOeFaToCi2qunD0yiik5khCHIeZ1R5/FtXs4kfFbjsvI312Bp7oI aMxvcXdobP6WA7F5RnhYXotPe7m5/3aze8Najtf+7LIrLMyCoMBqJ5/0Co5+olV/v2 Dkdpeond/GyfKhBBiZU8o4VEzihpej5KWlrLFPQ1rVPnvJ0KaKfkbtVwvCsO16n0zD FZCExk4Q0BVcD3bIwezNXshn4OAwDUnqLADtUg7atgA9yCjVxvK9sCqW+TrfPubIhp fz4tbnwTAcFH2BWOGNAQisuHbm56aFO+6SHK5ZJQZQ2ReljvEYXx0pQHGB/GsYH768 oh+XEVNW7+Stw== Date: Sun, 21 Aug 2022 14:42:24 +0300 From: Leon Romanovsky To: Jack Wang Cc: linux-kernel@vger.kernel.org, Tariq Toukan , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [PATCH v1 19/19] net/mlx4: Fix error check for dma_map_sg Message-ID: References: <20220819060801.10443-1-jinpu.wang@ionos.com> <20220819060801.10443-20-jinpu.wang@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220819060801.10443-20-jinpu.wang@ionos.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, Aug 19, 2022 at 08:08:01AM +0200, Jack Wang wrote: > dma_map_sg return 0 on error. > > Cc: Tariq Toukan > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: netdev@vger.kernel.org > Cc: linux-rdma@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > > Signed-off-by: Jack Wang > --- > drivers/net/ethernet/mellanox/mlx4/icm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky