On Tue, Feb 28, 2017 at 05:28:11PM +0200, Mika Kuoppala wrote: > If we manage to tangle errorpaths and get call to callbacks, > it is better to defensively keep them as null until object init is > finished so that we get clean null deref on callsite, > instead of more cryptic wreckage with partly initialized vm objects. I wouldn't go so far as saying clean; it's a jump to the NULL function pointer, which can be quite confusing until you realise why you have such an odd stack frame. > Signed-off-by: Mika Kuoppala <mika.kuoppala@xxxxxxxxx> Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx