Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp109150rwe; Fri, 26 Aug 2022 01:26:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR5OSM3zWyeG0uCpnttMWBZ+1HGzjPbzRJh+wd0L3rF7nAac3fKFtNIdO/jnnLI96wEBiYY6 X-Received: by 2002:a17:90a:8b82:b0:1fa:973c:1d34 with SMTP id z2-20020a17090a8b8200b001fa973c1d34mr3270682pjn.31.1661502417451; Fri, 26 Aug 2022 01:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661502417; cv=none; d=google.com; s=arc-20160816; b=XfrHvvgPjf6mAyGL5kh+dBPW56QlYxKGfQL3mGqc+2B87crq9FkY42NnuiGcGgnpOS mOdsgG/clvsP0AXtfoDYzWWvnLTng4xneY/GevjnL5QmbB1hkrNp58AcsrcOv+EunCgZ qubF7vwhYFEtYqQfxcsCNzSEMu0JswpSDFCsakJF4fw3oCSK3BuazCOhduOmnm0PLOxD kQKvYss5tnw8wazJCnJYPxZSW6lnH0JWQF+Mqh/Wyq+WF0enlnnLeaAhelCxL/M6StCG 7pD/qxz4eZj/yA2eytJnaMO/yWw1XD8cYm1n6+jJ6C0bdHOtV62k3rQPPXPDgRbrq7eP 56rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NXwitHio/7JwDumLFpAgiMLj63RaVL17ajcp21R6k2Q=; b=h+LktNgmMZF2aaoaq+ubXUCenzgflbo9oEZuk/yS1lfa8yp1suMTKaZiYVT/AYXMY8 5ufXf+hI6kb8C3IUlOydDHYAZayopOtgNNQQCIq4ANLY+4DQrrM2MBMcKg4LGdV7gzmq H2b45xTt9IETAmiXGRhNWQ3gokmZtENpwP92//B1IiDrWP9NNeZ5APECS+oNVBVbkDeN nSffDGAGpCjvVkm/gboGrYCXDQwZ9AO4WxWkrKLJUXyaaB/xAll/qLwF7Z3YXkcQz/RL d2FJZuIWS5I+XerBHD1OgVkxQQ4Lrbzc5BrBmyWL3WOg6kyQvmsA8lYwHo78DXWjXF9U 7HnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mgcopMPy; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a17090a3b0500b001fb7bb08512si1359287pjc.57.2022.08.26.01.26.35; Fri, 26 Aug 2022 01:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@linaro.org header.s=google header.b=mgcopMPy; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343550AbiHZINa (ORCPT + 99 others); Fri, 26 Aug 2022 04:13:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343563AbiHZIN0 (ORCPT ); Fri, 26 Aug 2022 04:13:26 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 045E2D4BD0 for ; Fri, 26 Aug 2022 01:13:24 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id w19so1722054ejc.7 for ; Fri, 26 Aug 2022 01:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=NXwitHio/7JwDumLFpAgiMLj63RaVL17ajcp21R6k2Q=; b=mgcopMPyOg5dStcVRGKVJ7sc/uHv47EJrRaQhXAtmc0rfwJ18NGlqkmPZ8PrUvg48P MNQfyaWkkDjjt3yjs92nvYyJGerfcBOfhUyLvQoBMX31pB9JqMdkkpotlr9g4XPjdPJf MZMS0Rznheo89L7t+kM3kIsVQNEXc//u6oB6+zyMCRGTviL4ZMHMvvkBy2vgLzRGWD3o cdcZVSLzUpeykDumVucvbYJY94WGedvDSrBwPTWd0m2HwNYpANQjZrHcOMgWhpfNUzac +9gdxj0hyP6wZp5X/p4T5eO5LwExgPWK90CTCVrSYFn7qm6foPijy6PwFFyMLMDt8XZ5 lNoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=NXwitHio/7JwDumLFpAgiMLj63RaVL17ajcp21R6k2Q=; b=D1pba/4tDp8XvAUeasSsK+9IWtD1mhrRkDPhLaJdnDWYv+VAxzAZ9vLWI6siDZIY4E KRva/JWotncWLlz5Emofu/8c9FcLcr4pe3PqUf1dxVm8+Wqz5slMaslBXY6aha8b4tGE OeHOzfetaOCRdVXf+suw5jMxJzfuQaLhIn6zktbUjaIeLd4VGsYTA1pRgCfXhIDvSdM+ 5BA4nJKYP5ms8OSYxpvGFJe9XsyelF+hq62NP/D313qnAa6sbLLZ75maw9r634psgNnH L1KBG6wNSMSzhLUSQgXuCWnknQR+vTrg1/YR5O9oyZi9cL308qZC2G38/ooN4aLH2+jc Je3w== X-Gm-Message-State: ACgBeo1wF+M+OZwOc5wOQr7o6+gJqbI7L8rkI9W9asC6muA4CDDWtyLx M9AmLe1FTPi9/73Szc9mH/KTkQpiy/ZE67YfbhiERA== X-Received: by 2002:a17:907:6293:b0:73d:b27b:e594 with SMTP id nd19-20020a170907629300b0073db27be594mr4892481ejc.526.1661501602905; Fri, 26 Aug 2022 01:13:22 -0700 (PDT) MIME-Version: 1.0 References: <20220819060801.10443-1-jinpu.wang@ionos.com> <20220819060801.10443-8-jinpu.wang@ionos.com> In-Reply-To: <20220819060801.10443-8-jinpu.wang@ionos.com> From: Linus Walleij Date: Fri, 26 Aug 2022 10:13:12 +0200 Message-ID: Subject: Re: [PATCH v1 07/19] crypto: gemin: Fix error check for dma_map_sg To: Jack Wang Cc: linux-kernel@vger.kernel.org, Corentin Labbe , Hans Ulli Kroll , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-crypto@vger.kernel.org On Fri, Aug 19, 2022 at 8:08 AM Jack Wang wrote: > dma_map_sg return 0 on error. > > Cc: Corentin Labbe > Cc: Hans Ulli Kroll > Cc: Linus Walleij > Cc: Herbert Xu > Cc: "David S. Miller" > Cc: linux-crypto@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Jack Wang Good catch! Reviewed-by: Linus Walleij Yours, Linus Walleij