Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1040034rwb; Sat, 5 Aug 2023 06:15:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqWK+c4MHagE2ivMlEeKguq6QJhawic1Q/ZcRGeNIWDgKokv7KAjl5tcVy6hADShSxQQhJ X-Received: by 2002:a05:6a20:9390:b0:134:15df:b148 with SMTP id x16-20020a056a20939000b0013415dfb148mr4055512pzh.29.1691241359551; Sat, 05 Aug 2023 06:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691241359; cv=none; d=google.com; s=arc-20160816; b=XBj4r2AxcvWLZTAbtTI+oUJHDAbydCCpYqqi4cQwm+4RWi8Vfscf/d7/LIsz9aCbpk DDcvqO0L8PIdYVHN6Gm2k5SIeqVrnGSkDEweG1q6GRN6lEzVNywDPpMSI2sgry7isPI4 V3XTvn2z0IX7TW5wHCyB+Brh6Io5T2maqkG4XxMkw4k2IzL3bqYneM1HVN8ir1VsWn3M UAXTgNcx0P1gKNglQdfoC6/80GQvNE2TZEl13k1utHmTEKMSokLcbtHeWva2bv0XwcD1 ijK3POM5XUghBvTya6ezQK+IfqDFTyTWPxXtYkSDqxVQh64xcIZkLdTk207Xc84Uirqe oe7Q== 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=8O6Fv9O4pIaGAzQYmQX7Nl+C4SRNyyQC9JTnv1X8Mas=; fh=hWUkr19I/0/+hp3+pduoA2KHWi+z+CGuCR4/K5kzJqQ=; b=WMWEOAvFluLgDZisDb95R2iTQa7EAd20gVVVpiIcL04MyGz3/f1GLYHzeyvZVW8UAr EPWO9xCdDqhOgC+FcuUU63Un+2p3qMGx/I6MSWo818W6p8BdEjqYDEvyjcsvE6QFO4Gh nYgAmdAeXBM5xGccrXJGj9m5EN6DqKEyUiSgaTSg7nb3lmdRTpJz3wjmCzdIJxkqMogZ iQPBgDc28sqR8JuBxmKVG7UY5xX1FO4yXms2eRlxhmHC9ZWGQah5H9mER1zxzPBJ1/tS VaaBGGt5wU9cp/7IjT2w3lVGtnN/fFT59CFisFmHcW2L3toeyrLyYvZz2Rt0W6WZNpRX tzIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q12nSUAa; 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 u190-20020a6385c7000000b00553c2f85095si3113221pgd.832.2023.08.05.06.15.47; Sat, 05 Aug 2023 06:15:59 -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=Q12nSUAa; 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 S229941AbjHENBx (ORCPT + 99 others); Sat, 5 Aug 2023 09:01:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjHENBw (ORCPT ); Sat, 5 Aug 2023 09:01:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D266EE6A; Sat, 5 Aug 2023 06:01:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7091660D37; Sat, 5 Aug 2023 13:01:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5084AC433C7; Sat, 5 Aug 2023 13:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691240510; bh=ubNowK1yjlHoJdYc2ZzISgzS0f53Vxpdvy24J0/gKlE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q12nSUAasF6GgXNJHfpe9yP4Pnca/XU5GaidDrUVDcAgxeTXH3tIH8Qn/92HfYw1z YO3HRhsB952/gp4+CbfUXMZYy/Pg4lebF2CS4enJK5sMft4iG9q5iGSbeIuTgkU94z DgvJIUHnidQh0911UhyDj1j5gBIvPSyzoEoHsorT8FN1ab9rm/PwETSCI3YDuYgSrr 3cAQpm67LfFwOsLj2w3ajaUCppKmeMgb4sIJbqaYjooAmFpwU59CKK9K9n77TkLMX9 6rDEZTFr1lVzjpEbgmoBmhUAiPkgQDMiMT+QpX6bZ0FZR3Grxb/R7J/Fhnv+/b4iIu k2Nn0zvOkBKRw== Date: Sat, 5 Aug 2023 15:01:47 +0200 From: Andi Shyti To: Thierry Reding Cc: Akhil R , christian.koenig@amd.com, digetx@gmail.com, jonathanh@nvidia.com, ldewangan@nvidia.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, sumit.semwal@linaro.org, wsa@kernel.org Subject: Re: [PATCH] i2c: tegra: Fix the check during DMA channel release Message-ID: <20230805130147.eabmdfbyttx2mjpl@intel.intel> References: <20230717151240.68899-1-akhilrajeev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 Hi Thierry and Akhil, On Mon, Jul 17, 2023 at 05:24:15PM +0200, Thierry Reding wrote: > On Mon, Jul 17, 2023 at 08:42:40PM +0530, Akhil R wrote: > > Check for error and NULL before attempting to release DMA channel. > > > > This, otherwise, was causing panic and crash in kernel when the > > dma_chan has an invalid value. The condition occurs during init_dma() > > when the dma_request_chan() function returns an error. > > > > Fixes: fcc8a89a1c83 ("i2c: tegra: Share same DMA channel for RX and TX") > > Signed-off-by: Akhil R > > --- > > drivers/i2c/busses/i2c-tegra.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) I guess this patch is not needed anymore. Andi