提交 88be12c4 编写于 作者: D Dave Airlie 提交者: 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
requirement.
Signed-off-by: NDave Airlie <airlied@redhat.com>
Signed-off-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 376a21ff
...@@ -637,7 +637,7 @@ int delayed_slow_work_enqueue(struct delayed_slow_work *dwork, ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册