projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
376a21f
)
slow-work: use get_ref wrapper instead of directly calling get_ref
author
Dave Airlie
<airlied@redhat.com>
Mon, 29 Mar 2010 11:01:50 +0000
(12:01 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 29 Mar 2010 16:13:30 +0000
(09:13 -0700)
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>
kernel/slow-work.c
patch
|
blob
|
history
diff --git
a/kernel/slow-work.c
b/kernel/slow-work.c
index 7494bbf5a27035fcd80cb7b9bf4814452e37e9a8..7d3f4fa9ef4f3b15eeee03b4ed3f3684819c8cf8 100644
(file)
--- a/
kernel/slow-work.c
+++ b/
kernel/slow-work.c
@@
-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;