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

Commit 88be12c4 authored by Dave Airlie's avatar Dave Airlie Committed by Linus Torvalds
Browse files

slow-work: use get_ref wrapper instead of directly calling get_ref



Otherwise we can get an oops if the user has no get_ref/put_ref
requirement.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 376a21ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -637,7 +637,7 @@ int delayed_slow_work_enqueue(struct delayed_slow_work *dwork,
			goto cancelled;
			goto cancelled;


		/* the timer holds a reference whilst it is pending */
		/* the timer holds a reference whilst it is pending */
		ret = work->ops->get_ref(work);
		ret = slow_work_get_ref(work);
		if (ret < 0)
		if (ret < 0)
			goto cant_get_ref;
			goto cant_get_ref;