From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73BCEC48BDB for ; Sun, 7 Jul 2019 17:22:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4122C2082F for ; Sun, 7 Jul 2019 17:22:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ug+MuDjT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="p8xhwKgC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4122C2082F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BRD7mJhFR8JTCMe8NTZyivEwFrJO2v3Xs/ujAV5ZDYI=; b=ug+MuDjTsL8yFf hMssSeeCEjCyqmOW0lsNa9Q7/rDYP3esyyj5S95xgQMI+4LatGl6yJIUNI72HvhhGT2baHjAcO2L2 AyBknqZvwA3zqMHYlQgjiE1izYJD0GJv3HFV6k6qB0T2Z4ywcv+ik4SRi47ekZVSZm13mQgO2QD8Q kBzRUAOveg73pp5tvH4k1hez/SRsFAR7cEMSvKFh0cuQ0wY5KjsJBrUeE6BU21z/wHvMwWwtLPca2 +0DW6q4LklNFBTlSQGnjHgHfxaaLLWB2wzZqPfw8cilRsa/2ecCNZiLy1rtnExr5DAONtWYKnRFU4 cNu1qkdvVi+Qzbh+lDkA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hkArv-0004zY-Hd; Sun, 07 Jul 2019 17:22:31 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkArr-0004yl-AZ for linux-arm-kernel@lists.infradead.org; Sun, 07 Jul 2019 17:22:29 +0000 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 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-Disposition: inline In-Reply-To: <1561796448-3321-1-git-send-email-raagjadav@gmail.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190707_102227_388411_31D96153 X-CRM114-Status: UNSURE ( 7.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, Ludovic Desroches , Dan Williams , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel