[Intel-gfx] [PATCH 4/7] drm/i915/perf: Whitelist OA report trigger registers

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri Nov 13 22:18:20 UTC 2020


On Fri, 13 Nov 2020 14:12:09 -0800, Umesh Nerlige Ramappa wrote:
>
> > +	if (wal->engine)
> > +		spin_lock_irqsave(&wal->engine->uncore->lock, flags);
> > +
> > +	kfree(wal->list);
>
> if (wal->list)
>	kfree(wal->list);

void kfree(const void *objp)
{
	...

        if (unlikely(ZERO_OR_NULL_PTR(objp)))
                return;


More information about the Intel-gfx mailing list