Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5712911ybi; Sun, 7 Jul 2019 10:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzR31Mc3qooTKMCAVRWJl4EINOk2xcwau8p+KkKPilR3CgTxSB6jTntA7cRQeHrHdUfDj0T X-Received: by 2002:a17:902:2869:: with SMTP id e96mr18606422plb.203.1562521990080; Sun, 07 Jul 2019 10:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562521990; cv=none; d=google.com; s=arc-20160816; b=LeWKSiQ81u/JS63z7ydjPcX2hkmbpYU4d+UJmK42D768MnQpbOFNyla1+KQoNcSizs YcptFyT2om4JIMmPlNmMD73tgTae5lsoYuq0b9AUdCDsl1q09BSKlBZ2YFlXVa9e700Z rS8Ujiey7pGwFqspBDChv6ac3QHfjqUxGoNVx4kVdVhuBP8hfeFpQoVq507hyJ0SdISI Ra8Sf1PsO21TbD84BqPDK6p5wQYX/Z76CshCw8WoXJgpWeLF+HkyPYcwjHe6cp8TSnJm IdEWnfwr57xt4Kr0dhkjKDt5lBVGaaVl3oxvKW95MV821HoZ7FMEKDrD8cx4O8ku6cm2 qSLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X1dyKStAt6q7lfvKTLhds06roBws4XMcrUq8+1qGT8o=; b=V1MqGTeibmiR8+tKZRgFFG6ry+0151L8xKY5ANlwlf84I1sGI9utfoUv1jrRVPc/Q0 dPQWXy70q9Hhd+pmDx9PmUlsx2Tsp9ob3uy6yJ6snGJo7iWa5Q0dbZfT3dq0CY+14Q8I t9n2hqvDC1GRD8vOAbPyzqpTyxCHiUO+NHoCsBeomqU2Yuq5+76LJOmzOcp4HIECkjwF 04iCgSdaiGVBj1lDpTmpPV/b8XiaqEbMdt9r25+O7HMdNMTSm3yXsKZtD3JKK2xrEzEJ PIUHBKPf1mPkk5ImVuQ0tcsOwdObcUazN1zFbZOGtfmmhSws98PokOhQde0/fN9tTRk2 uDcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p8xhwKgC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si16132248pfi.253.2019.07.07.10.52.54; Sun, 07 Jul 2019 10:53:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p8xhwKgC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727398AbfGGRWZ (ORCPT + 99 others); Sun, 7 Jul 2019 13:22:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:41686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbfGGRWZ (ORCPT ); Sun, 7 Jul 2019 13:22:25 -0400 Received: from localhost (unknown [49.207.58.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 123B62082F; Sun, 7 Jul 2019 17:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562520144; bh=2s2gE1E50GfJ/EeGP73+waB27rAFwSqJTvo/pyPbyTs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p8xhwKgCQQTlYyEcvQ9jYHJsRv0Z+cre4Dl/vakph1j//935NcoNxWlgYm9an0aBI tm8lVCX129aYQ1F7gtpxXixVR8/7M1hOdTo8Rd8T68DdyqUjfLMmNJoRRRYfkIRwdr hatgmaikvSFZLBe+cNlfc+FPBrhwAvaXzdjvaH4g= Date: Sun, 7 Jul 2019 22:47:01 +0530 From: Vinod Koul To: Raag Jadav Cc: dmaengine@vger.kernel.org, Ludovic Desroches , Dan Williams , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: at_xdmac: check for non-empty xfers_list before invoking callback Message-ID: <20190707171701.GI2911@vkoul-mobl> References: <1561796448-3321-1-git-send-email-raagjadav@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1561796448-3321-1-git-send-email-raagjadav@gmail.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-06-19, 13:50, Raag Jadav wrote: > tx descriptor retrieved from an empty xfers_list may not have valid > pointers to the callback functions. > Avoid calling dmaengine_desc_get_callback_invoke if xfers_list is empty. Applied, thanks -- ~Vinod