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

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
Signed-off-by: default avatarDave Airlie <[email protected]>
Signed-off-by: default avatarDavid Howells <[email protected]>
Signed-off-by: default avatarLinus Torvalds <[email protected]>
parent 376a21ff
......@@ -637,7 +637,7 @@ int delayed_slow_work_enqueue(struct delayed_slow_work *dwork,
goto cancelled;
/* the timer holds a reference whilst it is pending */
ret = work->ops->get_ref(work);
ret = slow_work_get_ref(work);
if (ret < 0)
goto cant_get_ref;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment