slow-work: use get_ref wrapper instead of directly calling get_ref
PATCH 1/1 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.
Cc David Howells <[email protected]>
Signed-off-by Dave Airlie <[email protected]>
--- kernel/slow-work.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/slow-work.c +1 -1
@@ -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;
Signature · 1 line
1.6.5.2