From: Dave Airlie Date: Mon, 29 Mar 2010 11:01:50 +0000 (+0100) Subject: slow-work: use get_ref wrapper instead of directly calling get_ref X-Git-Tag: firefly_0821_release~10186^2~1243 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2891de04359b824964e9ee9c87fbea2637e934fd;p=firefly-linux-kernel-4.4.55.git slow-work: use get_ref wrapper instead of directly calling get_ref commit 88be12c440cfa2fa3f5be83507360aac9ea1c54e upstream. Otherwise we can get an oops if the user has no get_ref/put_ref requirement. Signed-off-by: Dave Airlie Signed-off-by: David Howells Signed-off-by: Linus Torvalds Cc: Kurt Garloff Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/slow-work.c b/kernel/slow-work.c index 00889bd3c590..3514c4449604 100644 --- a/kernel/slow-work.c +++ b/kernel/slow-work.c @@ -640,7 +640,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;