[PATCH] powerpc: simplify dma_ops bug conditions

Muli Ben-Yehuda muli at il.ibm.com
Thu Jul 13 16:39:47 EST 2006


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




More information about the Linuxppc-dev mailing list