Messages in this thread Patch in this message | | | Date | Fri, 06 Aug 2010 11:57:19 -0700 | From | Greg KH <> | Subject | [24/34] slow-work: use get_ref wrapper instead of directly calling get_ref |
| |
2.6.32-stable review patch. If anyone has any objections, please let us know.
------------------
From: Dave Airlie <airlied@redhat.com>
commit 88be12c440cfa2fa3f5be83507360aac9ea1c54e upstream.
Otherwise we can get an oops if the user has no get_ref/put_ref requirement.
Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Kurt Garloff <garloff@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- kernel/slow-work.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/slow-work.c +++ b/kernel/slow-work.c @@ -640,7 +640,7 @@ int delayed_slow_work_enqueue(struct del 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;
| |