Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e27414a0 authored by Geliang Tang's avatar Geliang Tang Committed by Chris Wilson
Browse files

drm/i915/error: use rb_entry()

parent ec78828e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1080,7 +1080,7 @@ static void error_record_engine_waiters(struct intel_engine_cs *engine,

	ee->waiters = waiter;
	for (rb = rb_first(&b->waiters); rb; rb = rb_next(rb)) {
		struct intel_wait *w = container_of(rb, typeof(*w), node);
		struct intel_wait *w = rb_entry(rb, typeof(*w), node);

		strcpy(waiter->comm, w->tsk->comm);
		waiter->pid = w->tsk->pid;