Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB459C7618D for ; Tue, 21 Mar 2023 08:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbjCUITP (ORCPT ); Tue, 21 Mar 2023 04:19:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbjCUITN (ORCPT ); Tue, 21 Mar 2023 04:19:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE9AD1E5DD; Tue, 21 Mar 2023 01:19:11 -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 8B3B9B80AAE; Tue, 21 Mar 2023 08:19:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8DA0C433D2; Tue, 21 Mar 2023 08:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679386749; bh=Ks5ViESurktGKgBd2uFB5R4vHEq34LZRHghYCYKAMSE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=po4Tb2EEoW2ifbcoLkCUcwd5AtZWf/qaa+6x3bbIYiiKJjXh5455CF05mKyYUERIJ 8bWwH/P4XoIgm+cLobUUOkoKAi1iREKNfsozXcuVyXz9T2oy6va809LRdF4dqqJXak DlX0KMmMOvlUNLQr9xwUAaHnDsZ5NXuLhLC2Ivhrvwnlm4Vn4DzaBcYTi8ViB1QaGC XiljPqSl5CMfimJCNFqc6qBobdLyPEWbZP/LySJu3sRGPAOmzqCDQB9k9hWFQt3h+v NMRzd0QPwmihZd9JMelo3jPM1gg1ZynIzt2sT5BI4jDw4QxXY2kAyuo13OT0Kd399m 6j0FOTougtPhA== Date: Tue, 21 Mar 2023 10:19:04 +0200 From: Leon Romanovsky To: Finn Thain Cc: Thomas Bogendoerfer , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Zhang Changzhong Subject: Re: [PATCH v2 net] net/sonic: use dma_mapping_error() for error check Message-ID: <20230321081904.GR36557@unreal> References: <6645a4b5c1e364312103f48b7b36783b94e197a2.1679370343.git.fthain@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6645a4b5c1e364312103f48b7b36783b94e197a2.1679370343.git.fthain@linux-m68k.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 21, 2023 at 02:45:43PM +1100, Finn Thain wrote: > From: Zhang Changzhong > > The DMA address returned by dma_map_single() should be checked with > dma_mapping_error(). Fix it accordingly. > > Fixes: efcce839360f ("[PATCH] macsonic/jazzsonic network drivers update") > Signed-off-by: Zhang Changzhong > Tested-by: Stan Johnson > Signed-off-by: Finn Thain > --- > This was originally Zhang Changzhong's patch. I've just added the missing > curly bracket which caused a build failure when the patch was first posted. > --- > drivers/net/ethernet/natsemi/sonic.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky