Received: by 10.192.165.148 with SMTP id m20csp429543imm; Fri, 20 Apr 2018 01:32:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+vUi6yRvO3BvOYjXl58OxrHEZnRqVJycozPXk5Yi7c5MBD6gQoCqP+JPUm0i+duU8ZJ5By X-Received: by 10.99.160.25 with SMTP id r25mr7578675pge.95.1524213127527; Fri, 20 Apr 2018 01:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524213127; cv=none; d=google.com; s=arc-20160816; b=N85beAkT+5oFikFe+14Xe7K2d5l9XgzqRvt8Xr+f1J0pn9vXfodSs83zKxQ2wcTNtb dLGF1UcxwZoUAySYafMAsjZrsrYy5lUDexzrbgBijxyI3lGoQmcS9H4zetWOw0HxkKHp b76rOd3Fuiv6XLEloToKx25B5MFlCPY7jaoz/MeXgsp7uOvtiOurlqSL+17O8l4NCOD/ wLCxgo/dBZK4+W5Lr6axUTcpFQeve8QE2q/gHH2xZqNKaPj7sgHEprktEZ/+idhH8Uue 8z/fOyBbMDyhrCwoUnD9eNI+mwbvIXFD2leo9PkprFOary1in9gmBOCA91el1VfJbw2k +mGA== 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:arc-authentication-results; bh=Wc8VB2LBXe73KMu2nkoKyLfLWVCA0fUialY193LcvRM=; b=Er5O/Ry91o27bxX9GHXVdQSjfMw1vG0c56ex8iH/gzzI/Jns7a3sqGw0IOlywkjeIN /Mszf8UIYQPrPgspzbbT34E4fkzX1DdCa2aempTPN4ZiQz7tBSYzV4DxfkWuEI8w9O7/ nTKSXPrE8UyIyoJ09xT2p7TkGdty9pwMx2emm0xu7seu/u0YVJNO8yF0qSot1D8Dl37y s1qJ0sad0SmsSAQ7HlmUpzjXwP3uo554+tIGnDkTWztiQdVsJ/+JG17O//2bgvsODDZ1 gmGnc8KF907Hd7XvxBX29XD8XofHkrkPOEBK9OYdGB6yen5iUsTd7JQFC5eEFZKfGpH3 Ii/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ouy7ygf9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si5069694pls.144.2018.04.20.01.31.53; Fri, 20 Apr 2018 01:32:07 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ouy7ygf9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754207AbeDTIar (ORCPT + 99 others); Fri, 20 Apr 2018 04:30:47 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37130 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753971AbeDTIap (ORCPT ); Fri, 20 Apr 2018 04:30:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Wc8VB2LBXe73KMu2nkoKyLfLWVCA0fUialY193LcvRM=; b=Ouy7ygf97aAaRGA2HVcRM5EoJ J45R01Y92sqphb+7pZ72HAQ31nOKwnl7DT2yATNmD4V0lZ9tfMEiCL75Fur7Nqri5niRxRGWwDbPC NEsORNIFzC0e3V8JyDsGj/KYhPNnlQ2X3t45aLwRhjOYlMR2LyPBoUzpxmRtdBKJrjkpmbw660BmL EnfdIil4MLifuHyqkPm+YrMx+z+pfAInMD5i3pzm1y01iHNRCi0XYVTV3pSmXfGw80fY0Hd+sggFm nRX1TZg/zN6EksRLXnQbIa6ELSwAtw6lm6kZU9wXsVgDgtebzoupykC6BJn0tyeF1mowcea/f84oE tBmbc8IyA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9RRA-0002PU-JU; Fri, 20 Apr 2018 08:30:32 +0000 Date: Fri, 20 Apr 2018 01:30:32 -0700 From: Christoph Hellwig To: Thomas Petazzoni Cc: Jacopo Mondi , ysato@users.sourceforge.jp, dalias@libc.org, thomas.petazzoni@free-electrons.com, robin.murphy@arm.com, geert@linux-m68k.org, linux-renesas-soc@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sh: mm: Fix unprotected access to struct device Message-ID: <20180420083032.GB31275@infradead.org> References: <1523972123-5700-1-git-send-email-jacopo+renesas@jmondi.org> <20180417155407.49c981b3@windsurf.numericable.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180417155407.49c981b3@windsurf.numericable.fr> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 03:54:07PM +0200, Thomas Petazzoni wrote: > > dma_alloc_coherent(&pdev->dev, memsize, &dma_handle, GFP_KERNEL); > > and one to switch to the WARN_ON + if(dev) model. But I don't really > care either way, so: > > Reviewed-by: Thomas Petazzoni Yes, these should be separate patches. And I actually hope we can do with the NULL dev check, but that is a different sub-thread.