Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3540904imu; Sat, 24 Nov 2018 06:32:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/UytqP2nHE5TKAax+ndwRvTw57ju7C+D52DmNSreMxOr0EFM3TJ4B13iPYfEa8i4QaH/lD1 X-Received: by 2002:a17:902:9897:: with SMTP id s23mr19304327plp.69.1543069975274; Sat, 24 Nov 2018 06:32:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543069975; cv=none; d=google.com; s=arc-20160816; b=jyEyG5teQ0QpHRksgt5pjT3UgIYYDXxH4KLWSgevufRz9JxDlA6T0QNdIeThpaoLtS dgWrHL3nfJuodE0kY72CzbN9pGmkl4mvxY+KKcc+tJwBFS4Yvm6RTNyK6oD1kshTfUZv l3MzOwsOq5ClDSutBdJuqDF5F/uyhRA773eie7NnODo7IZdn6iTzzYdoF0HQzdmKTX/O yzpialmdGmUnnxBHcgikHCQ5qFZTLX7Ck+lYOOZf5KUK9x5H0mAJGY6GtrDYetRh1iRz JUPGO54IfDvwf0A1A8J3lGhNl4+H/kXtSywkB0gG4EqrOSk/VMo8QGWK0Uo5JTIEg9az VMCA== 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=DllwK5AX5EmZDnYlxjsxZAzIqEGYJ0+nGoiF6zuzvyY=; b=Zl6YmPGbbKpJbLwyIK4avPw/1IjRaBKH3MTTc1Y5l7D/P3xVh3FmZjv1FJNvPLR4FS lTydFDbDU1ricQmySfTD3mqGfRZruTBIYxYdWWVE/yzvbmP/sjqcovG4NJhJ8u3/Aljw AAEC1L1bCWYLoqhq+cNr2fW78ccvDhiD79n+Q8kIfpjtjUP1zBOrFdNiln4B9M7RTn6j NcBR11G/dtn0lkDBSdrqR1S4MZN2ywJ4tSLlFNTbFnS64mnB7O6+EYI14UYGPSSu16mQ iib46ELeyXsMdYi2q/asttKh6ChSLF4IzsEC/5rKVgQXawYArefzS7F9LxNv/gV0hBvJ cgOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i+XNoftW; 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 23si38046884pfz.20.2018.11.24.06.32.39; Sat, 24 Nov 2018 06:32:55 -0800 (PST) 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=i+XNoftW; 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 S1726655AbeKYBTR (ORCPT + 99 others); Sat, 24 Nov 2018 20:19:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:39470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbeKYBTR (ORCPT ); Sat, 24 Nov 2018 20:19:17 -0500 Received: from localhost (unknown [122.178.235.61]) (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 F19EF20865; Sat, 24 Nov 2018 14:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543069843; bh=A4zoPxwszAA40d/qMzG+I+iaGq6X+d85x6qeX5pxghE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i+XNoftWJIG40VYYpB6khiPL9eAVBOBqDap6IE1l27kl8L386nAG4Vmcz8S960C4i QN86QTcEkiDWHfF3NxJDxKYMGjUk22ydgFkbpFuNi68vxKaYUlD6XsL3AJ61m3Z0OF CFiiZABVKRHoJq1mvT4848WzySF/6jAjqJAu1/wk= Date: Sat, 24 Nov 2018 20:00:35 +0530 From: Vinod Koul To: Jia-Ju Bai Cc: linus.walleij@linaro.org, dan.j.williams@intel.com, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dma: coh901318: Fix a double-lock bug Message-ID: <20181124143035.GJ3175@vkoul-mobl.Dlink> References: <20181106033348.27361-1-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181106033348.27361-1-baijiaju1990@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-11-18, 11:33, Jia-Ju Bai wrote: > The function coh901318_alloc_chan_resources() calls spin_lock_irqsave() > before calling coh901318_config(). > But coh901318_config() calls spin_lock_irqsave() again in its > definition, which may cause a double-lock bug. > > Because coh901318_config() is only called by > coh901318_alloc_chan_resources(), the bug fix is to remove the > calls to spin-lock and -unlock functions in coh901318_config(). Applied after fixing subsystem tag, thanks -- ~Vinod