Re: [PATCH v2] drm/i915/selftests: avoid using uninitialized context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mikolaj,

> > +	if (!ppgtt->vm.allocate_va_range) {
> > +	        i915_vm_put(&ppgtt->vm);
> > +	        return 0;
> > +	}
> 
> I don't know if it feels more in line with kernel style, but consider
> changing it to a label before second `i915_vm_put` at end of function
> plus goto instead of creating new cleanup section.

I do not mind, we can place a label as well, as long as we avoid
using that uninitialized struct. I will include your suggestion
in v3.

> Otherwise looks alright.
> Reviewed-by: Mikolaj Wasiak <mikolaj.wasiak@xxxxxxxxx>
Thanks for reviewing!

Krzysztof



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux