From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4003A2CCC0 for ; Thu, 26 Dec 2024 16:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735230694; cv=none; b=uhnSyhbNJzgKsZ1zjmVhT65dtxCWHI0kfSDYM7L2zqgMCBulC1TTSQGfDccqNV/xpPcJ0KLqshOpVNpdkv0ccusiqvjF+KyXnnqH3nbiLIBoIleoTh5Cir0D+lvMMW9h37CXrcx/81ABHptwUsndBIBqyiLeZ1uQzusakQkD1nk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735230694; c=relaxed/simple; bh=QOX4GpQHMKaujnZhjnaloafPHbT9QB4jfXqf2/m6YwI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B2tUZK9PXCE8Q3iqf1x53AN4n3/Mp3fcXnAY4WDr0vorXZqpxbJuluT78rzu+2JM2R/kaii+BmCZ7IA+qsM18bVOY/yg86m45jhvWoE3imuapHbkwMGeBAoXpQ0bFHhyw+LUbtudr1y/ikNzasv5uMW+0znLtncV/2z1jcikRUQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NrE7BJAT; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NrE7BJAT" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-216401de828so73521415ad.3 for ; Thu, 26 Dec 2024 08:31:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735230692; x=1735835492; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=4NVjePzjPUL25kSTYWHfZhN3AdxWwbK2D9YWqDeOy1I=; b=NrE7BJATYMu/R5opinZYxwLIAda43vYTehRwFp81vk/kwAJHHcb44/ssbMtkJaIAWn LFBEXQ18/2GUKQZrzvNaJGGYAXrmFE7VJdEJC4clL5DO96bx4PJ2LgrS3xxy58/ZjaFc 3yjz+87PE7/AMGu7FzfZTnuCCbgFbfzkBmNXFpFzCi7zsKYSUJIkTSMga2rF9HUQBrF0 SzHawqc3HDhKNJPSUE5aYvXg3rv15wg1nv10L5WaldkS78+Wvm//ZiltNgx+/dghrFqT roMZMQsqYxdiem/5DwgdlGSmpPn8i0qEczWjeMhLh2gv/tTD+Kr3fL5SdEV5uav7AUH+ oB4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735230692; x=1735835492; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4NVjePzjPUL25kSTYWHfZhN3AdxWwbK2D9YWqDeOy1I=; b=BzjKE3DGGYqN3qqImzxLGn6S/4SgWyzuiHIaMlSNhg8Id9IIlRuUzucDU5NIif91/Q AfOljZohnJ+xG1zKu3LheZA6hznEI+AI9G6CqKhm9Xl+RqhvUvIgUV7xDl8jd6Meb0zd SqiTpAsSR2FfXFUpJ6R0e7rehu0q97EEe04I5DuMeoB7IzcQH/Ggjd2K2yY3qVIN8cdD smQowp3vHnzn6EdD4XluRuHhT2KyTZP9OB/Lb5pDqBYhz/m/qaC13YNs3feLNuo27Z3b 8jU26e+xSmQiAXy6li2wEb4EFXzKk3uJNmbaq5wiXHNBaWmH6P6LiWbH4GfLv6IAvP1/ ra4g== X-Forwarded-Encrypted: i=1; AJvYcCVuAJ9Tgep4nO4B0Prm5xbAlJr1cDaavPU2HEUd7PdMkmEwTUHODrM2V6PitMuKOU6JnzYQvXOoU+QHuIU=@vger.kernel.org X-Gm-Message-State: AOJu0YzVsELg+FiW42gxzYbFXedVOFBVq6IbwgxHi3+W8H7nfkbFiNXh Jj8tqQfdAzKsYqr2eJg7An8CcDDp9MUAL+1Wz1t40WUem3359L9E2jOMH1IlMLRqLZDvMettM+0 = X-Gm-Gg: ASbGnctuX7F1FXudgDtWragT5CDXybSDQM+8I6wYLP0vAchXoyHmDkzUoHB3ZqWwUs/ +2WjVl/XuGabylVKPO5YuTyINPWpIziWZLxS/Uk2LUmIEh0Wvkk+IVStgjw1K/GNyVCU3jrAipj 09DN3DxUooMQRW8TbrF8qRhjlX0iShk7mHg3x8/GPKJ/c67CdGXd/babmJVxvAvzJwNCzjzooOS L9tpM3YIC7ZijxUo79mpbtkuPRJEg2uO82u+3Vt09Iy9twlNJVKgqFmvoQCft4/5HI= X-Google-Smtp-Source: AGHT+IF9yrfaTFZ5jPZ59uUH9NRApTu9Y/LOOoKnJ8ECUb+TAGhvbQCGP65rwUCwKPGDU6DfsN9Eng== X-Received: by 2002:a17:903:2286:b0:215:b087:5d62 with SMTP id d9443c01a7336-219e6f1483fmr341124765ad.36.1735230692395; Thu, 26 Dec 2024 08:31:32 -0800 (PST) Received: from thinkpad ([120.56.206.83]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca01931sm122090265ad.245.2024.12.26.08.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2024 08:31:31 -0800 (PST) Date: Thu, 26 Dec 2024 22:01:21 +0530 From: Manivannan Sadhasivam To: Mohamed Khalfella Cc: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Niklas Cassel , Frank Li , Damien Le Moal , Wang Jiang , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] PCI: endpoint: Set RX DMA channel to NULL after freeing it Message-ID: <20241226163121.n2itccd4glm6vum4@thinkpad> References: <20241221173453.1625232-1-khalfella@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20241221173453.1625232-1-khalfella@gmail.com> On Sat, Dec 21, 2024 at 09:34:42AM -0800, Mohamed Khalfella wrote: > Fix a small bug in pci-epf-test driver. When requesting TX DMA channel > fails, free already allocated RX channel and set it to NULL. > Patch description should accurately describe what the patch does. Here, the patch is fixing the NULL ptr assignment to dma_chan_rx pointer and that's it. Reword it as such. - Mani > Fixes: 8353813c88ef ("PCI: endpoint: Enable DMA tests for endpoints with DMA capabilities") > Signed-off-by: Mohamed Khalfella > Reviewed-by: Niklas Cassel > --- > drivers/pci/endpoint/functions/pci-epf-test.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c > index ef6677f34116..d90c8be7371e 100644 > --- a/drivers/pci/endpoint/functions/pci-epf-test.c > +++ b/drivers/pci/endpoint/functions/pci-epf-test.c > @@ -251,7 +251,7 @@ static int pci_epf_test_init_dma_chan(struct pci_epf_test *epf_test) > > fail_back_rx: > dma_release_channel(epf_test->dma_chan_rx); > - epf_test->dma_chan_tx = NULL; > + epf_test->dma_chan_rx = NULL; > > fail_back_tx: > dma_cap_zero(mask); > -- > 2.45.2 > -- மணிவண்ணன் சதாசிவம்