From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 13 Jul 2006 09:39:47 +0300 From: Muli Ben-Yehuda To: Jeremy Kerr Subject: Re: [PATCH] powerpc: simplify dma_ops bug conditions Message-ID: <20060713063947.GD5096@rhun.ibm.com> References: <20060713063252.1D35867B58@ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20060713063252.1D35867B58@ozlabs.org> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Jul 13, 2006 at 04:32:52PM +1000, Jeremy Kerr wrote: > Use BUG_ON rather than BUG to simplify the dma_ops handing, > and remove the now-unnecessary return cases. > > Booted on pseries. Is the BUG_ON() necessary? the next line just goes and deref's it, which should lead to a shiny NULL pointer deref. Cheers, Muli